drm/omap: Determine connector type directly in omap_connector.c
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 5 Jun 2018 21:31:57 +0000 (00:31 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:29 +0000 (16:13 +0300)
commit52c5dd2a7bed1610a37f89aeb4f73ad8fbba05fc
tree207d6fc7daedc7e1ad05b7be913fce5d40a86974
parent47a3ee27934a7a774be4aa1733c662f33e1ae656
drm/omap: Determine connector type directly in omap_connector.c

Instead of determining the connector type from the type of the display's
omap_dss_device and passing it to the omap_connector_init() function,
move the type determination code to omap_connector.c and remove the type
argument to the connector init function. This moves code to a more
natural location, making the driver easier to read.

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_connector.c
drivers/gpu/drm/omapdrm/omap_connector.h
drivers/gpu/drm/omapdrm/omap_drv.c