diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-12-10 07:00:38 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-03-18 05:42:13 -0400 |
commit | 0dbfc396672025d3ef8bacc934b80a5463e75c6d (patch) | |
tree | 91ac4d0771a6996daf7c40c0d695cbd2ef1aed2f /drivers/gpu/drm/omapdrm/dss/omapdss.h | |
parent | a4e26525cacb5154a0e00415aa3f889ee5d295db (diff) |
drm/omap: Merge omap_dss_device type and output_type fields
The omap_dss_device type and output_type fields differ mostly for
historical reasons. The output_type field is required for all devices
but the display at the end of the pipeline, and must be set to
OMAP_DISPLAY_TYPE_NONE for the latter. The type field is required for
all devices but the internal encoder, for which it is ignored.
The only reason why the output_type field must be set to
OMAP_DISPLAY_TYPE_NONE for the display at the end of the pipeline is to
identify omap_dss_device instances corresponding to displays. This is
not documented and confusing.
Clean the code by adding a new display field to the omap_dss_device
structure to identify displays, and merge the type and output_type
fields.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/omapdss.h')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/omapdss.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h index d13a6b5774e8..ab5467a1e92c 100644 --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h | |||
@@ -413,14 +413,18 @@ struct omap_dss_device { | |||
413 | 413 | ||
414 | struct list_head list; | 414 | struct list_head list; |
415 | 415 | ||
416 | /* | ||
417 | * DSS type that this device generates (for DSS internal devices) or | ||
418 | * requires (for external encoders, connectors and panels). Must be a | ||
419 | * non-zero (different than OMAP_DISPLAY_TYPE_NONE) value. | ||
420 | */ | ||
416 | enum omap_display_type type; | 421 | enum omap_display_type type; |
422 | |||
417 | /* | 423 | /* |
418 | * DSS output type that this device generates (for DSS internal devices) | 424 | * True if the device is a display (panel or connector) at the end of |
419 | * or requires (for external encoders). Must be OMAP_DISPLAY_TYPE_NONE | 425 | * the pipeline, false otherwise. |
420 | * for display devices (connectors and panels) and to non-zero value for | ||
421 | * all other devices. | ||
422 | */ | 426 | */ |
423 | enum omap_display_type output_type; | 427 | bool display; |
424 | 428 | ||
425 | const char *name; | 429 | const char *name; |
426 | 430 | ||