diff options
author | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2019-07-26 20:23:10 +0300 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2019-07-31 17:32:38 +0300 |
commit | 7058e76682d762e211e7681155c5e11709182271 (patch) | |
tree | 770765a470adb2ec2a44151dcc5d45747aada8d2 /drivers | |
parent | 2ae7eb372ed42e480d55848d597b44d4e47b0ab6 (diff) | |
download | linux-7058e76682d762e211e7681155c5e11709182271.tar.xz |
drm: sti: Provide ddc symlink in hdmi connector sysfs directory
Use the ddc pointer provided by the generic connector.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
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/510765aff8ef99683aa2da48bd08004376b1980a.1564161140.git.andrzej.p@collabora.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/sti/sti_hdmi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index 1617c5098a50..9862c322f0c4 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c @@ -1287,8 +1287,10 @@ static int sti_hdmi_bind(struct device *dev, struct device *master, void *data) drm_connector->polled = DRM_CONNECTOR_POLL_HPD; - drm_connector_init(drm_dev, drm_connector, - &sti_hdmi_connector_funcs, DRM_MODE_CONNECTOR_HDMIA); + drm_connector_init_with_ddc(drm_dev, drm_connector, + &sti_hdmi_connector_funcs, + DRM_MODE_CONNECTOR_HDMIA, + hdmi->ddc_adapt); drm_connector_helper_add(drm_connector, &sti_hdmi_connector_helper_funcs); |