drm/i2c: tda998x: find the drm_device via the drm_connector
authorPeter Rosin <peda@axentia.se>
Thu, 2 Aug 2018 09:25:19 +0000 (10:25 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 2 Aug 2018 09:25:19 +0000 (10:25 +0100)
This prepares for being a drm_bridge which will not register the
encoder. That makes the connector the better choice.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c

index 0038c976536ac41d3e0f43f156d81c0fead5e50c..c39f7c36ba246f1a7591da0d24e427d4e9f917d5 100644 (file)
@@ -762,7 +762,7 @@ static void tda998x_detect_work(struct work_struct *work)
 {
        struct tda998x_priv *priv =
                container_of(work, struct tda998x_priv, detect_work);
-       struct drm_device *dev = priv->encoder.dev;
+       struct drm_device *dev = priv->connector.dev;
 
        if (dev)
                drm_kms_helper_hotplug_event(dev);