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

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b5a8881b226a9af7d31eb6a57d7fe0fccdcb3a47.1564161140.git.andrzej.p@collabora.com
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c

index b2df76addc75ad26ca9390d65d8bf8bbff166cb0..eb8071a4d6d002154d3a93caa80b2eb110996c40 100644 (file)
@@ -640,9 +640,10 @@ static int sun4i_hdmi_bind(struct device *dev, struct device *master,
 
        drm_connector_helper_add(&hdmi->connector,
                                 &sun4i_hdmi_connector_helper_funcs);
-       ret = drm_connector_init(drm, &hdmi->connector,
-                                &sun4i_hdmi_connector_funcs,
-                                DRM_MODE_CONNECTOR_HDMIA);
+       ret = drm_connector_init_with_ddc(drm, &hdmi->connector,
+                                         &sun4i_hdmi_connector_funcs,
+                                         DRM_MODE_CONNECTOR_HDMIA,
+                                         hdmi->ddc_i2c);
        if (ret) {
                dev_err(dev,
                        "Couldn't initialise the HDMI connector\n");