drm/bridge: dumb-vga-dac: Provide ddc symlink in connector sysfs directory
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Fri, 26 Jul 2019 17:23:13 +0000 (19:23 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 31 Jul 2019 14:33:57 +0000 (16:33 +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/ebb75e71b8b7c8d65d54a947a03fd21b8969fb3a.1564161140.git.andrzej.p@collabora.com
drivers/gpu/drm/bridge/dumb-vga-dac.c

index d32885b..8ef6539 100644 (file)
@@ -111,8 +111,10 @@ static int dumb_vga_attach(struct drm_bridge *bridge)
 
        drm_connector_helper_add(&vga->connector,
                                 &dumb_vga_con_helper_funcs);
-       ret = drm_connector_init(bridge->dev, &vga->connector,
-                                &dumb_vga_con_funcs, DRM_MODE_CONNECTOR_VGA);
+       ret = drm_connector_init_with_ddc(bridge->dev, &vga->connector,
+                                         &dumb_vga_con_funcs,
+                                         DRM_MODE_CONNECTOR_VGA,
+                                         vga->ddc);
        if (ret) {
                DRM_ERROR("Failed to initialize connector\n");
                return ret;