diff mbox series

[v3,16/22] drm/mgag200: Provide ddc symlink in connector sysfs directory

Message ID e3144c9c1cba74e0fe12f281218dcc68061cca48.1561735433.git.andrzej.p@collabora.com (mailing list archive)
State New, archived
Headers show
Series [v3,01/22] drm: Include ddc adapter pointer in struct drm_connector | expand

Commit Message

Andrzej Pietrasiewicz June 28, 2019, 4:01 p.m. UTC
Use the ddc pointer provided by the generic connector.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
---
 drivers/gpu/drm/mgag200/mgag200_mode.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c
index a25054015e8c..a22dbecd4d35 100644
--- a/drivers/gpu/drm/mgag200/mgag200_mode.c
+++ b/drivers/gpu/drm/mgag200/mgag200_mode.c
@@ -1712,6 +1712,7 @@  static struct drm_connector *mga_vga_init(struct drm_device *dev)
 	drm_connector_register(connector);
 
 	mga_connector->i2c = mgag200_i2c_create(dev);
+	connector->ddc = &mga_connector->i2c->adapter;
 	if (!mga_connector->i2c)
 		DRM_ERROR("failed to add ddc bus\n");