mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
47a3ee2793
commit
52c5dd2a7b
3 changed files with 31 additions and 30 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue