]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafe43afe3b2f54c9206222bccc3afea1f1b0bef4
tree2f6a4ccb1ed9b978fed5e8889bfc8a20c9ddeb5a
parenta7aee22099f25226aab977b9cbc629b436308574
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