mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
drm: zte: Provide ddc symlink in vga connector sysfs directory
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> Link: https://patchwork.freedesktop.org/patch/msgid/20200102132300.24309-5-andrzej.p@collabora.com
This commit is contained in:
parent
a339fa5de0
commit
c35a024f8e
@ -165,8 +165,10 @@ static int zx_vga_register(struct drm_device *drm, struct zx_vga *vga)
|
||||
|
||||
vga->connector.polled = DRM_CONNECTOR_POLL_HPD;
|
||||
|
||||
ret = drm_connector_init(drm, connector, &zx_vga_connector_funcs,
|
||||
DRM_MODE_CONNECTOR_VGA);
|
||||
ret = drm_connector_init_with_ddc(drm, connector,
|
||||
&zx_vga_connector_funcs,
|
||||
DRM_MODE_CONNECTOR_VGA,
|
||||
&vga->ddc->adap);
|
||||
if (ret) {
|
||||
DRM_DEV_ERROR(dev, "failed to init connector: %d\n", ret);
|
||||
goto clean_encoder;
|
||||
|
Loading…
Reference in New Issue
Block a user