drm/bridge: ti-tfp410: Provide ddc symlink in connector sysfs directory
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Fri, 26 Jul 2019 17:23:15 +0000 (19:23 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 31 Jul 2019 14:34:55 +0000 (16:34 +0200)
Use the ddc pointer provided by the generic connector.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/3b61da77a6456805db0deffe6d1a2343dd784730.1564161140.git.andrzej.p@collabora.com
drivers/gpu/drm/bridge/ti-tfp410.c

index dbf35c7bc85ed649db73f76f361c3040daae44c3..61cc2354ef1bfe7eb09a6d93b9d7c22b3ed4c713 100644 (file)
@@ -134,8 +134,10 @@ static int tfp410_attach(struct drm_bridge *bridge)
 
        drm_connector_helper_add(&dvi->connector,
                                 &tfp410_con_helper_funcs);
-       ret = drm_connector_init(bridge->dev, &dvi->connector,
-                                &tfp410_con_funcs, dvi->connector_type);
+       ret = drm_connector_init_with_ddc(bridge->dev, &dvi->connector,
+                                         &tfp410_con_funcs,
+                                         dvi->connector_type,
+                                         dvi->ddc);
        if (ret) {
                dev_err(dvi->dev, "drm_connector_init() failed: %d\n", ret);
                return ret;