drm/omap: Check omap_dss_device type based on the output_type field
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 27 May 2018 19:01:24 +0000 (22:01 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:28 +0000 (16:13 +0300)
commit1298977f0c8a06743dad0bf64d9a9e5a1e863fa3
tree2f6a4ccb1ed9b978fed5e8889bfc8a20c9ddeb5a
parenta4e9ecf4bb19f13bbd346fae646e7d9ce33db3b8
drm/omap: Check omap_dss_device type based on the output_type field

Various functions that need to differentiate between omap_dss_device
instances corresponding to displays and to internal encoders use the
omap_dss_device.driver field, which is only set for display instances.
This gets in the way of the omap_dss_device operations refactoring.
Replace that with a check based on the output_type field which is set
for all omap_dss_device instances but displays.

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/dss/base.c
drivers/gpu/drm/omapdrm/dss/omapdss.h