OSDN Git Service

drm/omap: Pass both output and display omap_dss_device to encoder init
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 31 May 2018 20:14:43 +0000 (23:14 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:29 +0000 (16:13 +0300)
commitd96aaada55553b9e4264a2f2c8cc9599f027cd28
tree3b11a16ffa29042aa5403199b4de68248cdd2b9f
parent70f9cbfc56a3239ff65796e024b4bbf653d1e0ba
drm/omap: Pass both output and display omap_dss_device to encoder init

The drm_encoder implementation requires access to the omap_dss_device
corresponding to the display, which is passed to its initialization
function and stored internally. Clean up of the HDMI mode and infoframe
handling will require access to the output omap_dss_device. To prepare
for that, pass it to the encoder initialization function and store it
internally as well.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_drv.c
drivers/gpu/drm/omapdrm/omap_encoder.c
drivers/gpu/drm/omapdrm/omap_encoder.h