mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
drm/i2c: tda998x: find the drm_device via the drm_connector
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>
This commit is contained in:
parent
4da1d4c751
commit
b1eb4f844f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue