aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_connector.h
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2018-06-05 21:31:57 +0000
committerTomi Valkeinen <[email protected]>2018-09-03 13:13:29 +0000
commit52c5dd2a7bed1610a37f89aeb4f73ad8fbba05fc (patch)
tree207d6fc7daedc7e1ad05b7be913fce5d40a86974 /drivers/gpu/drm/omapdrm/omap_connector.h
parentdrm/omap: Pass both output and display omap_dss_device to connector init (diff)
downloadkernel-52c5dd2a7bed1610a37f89aeb4f73ad8fbba05fc.tar.gz
kernel-52c5dd2a7bed1610a37f89aeb4f73ad8fbba05fc.zip
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 <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_connector.h')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_connector.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_connector.h b/drivers/gpu/drm/omapdrm/omap_connector.h
index 42ff0a106179..854099801649 100644
--- a/drivers/gpu/drm/omapdrm/omap_connector.h
+++ b/drivers/gpu/drm/omapdrm/omap_connector.h
@@ -28,8 +28,9 @@ struct drm_encoder;
struct omap_dss_device;
struct drm_connector *omap_connector_init(struct drm_device *dev,
- int connector_type, struct omap_dss_device *output,
- struct omap_dss_device *display, struct drm_encoder *encoder);
+ struct omap_dss_device *output,
+ struct omap_dss_device *display,
+ struct drm_encoder *encoder);
struct drm_encoder *omap_connector_attached_encoder(
struct drm_connector *connector);
bool omap_connector_get_hdmi_mode(struct drm_connector *connector);