]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/omap: Manage the usable omap_dss_device list within omap_drm_private
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 12 Feb 2018 09:44:37 +0000 (11:44 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:25 +0000 (16:13 +0300)
commit52b9ef246d6a8667c87771d1b0fdb982afc88c7f
tree4c0b9a9e0fd58d05dc357086069bce0d74a1f65c
parentfb96b67c8ae0c91e17f0f9fe88cfce406ace6a94
drm/omap: Manage the usable omap_dss_device list within omap_drm_private

Instead of reaching back to DSS to iterate through the dss_devices every
time, use an internal array where we store the available and usable
dss_devices.

At the same time remove the omapdss_device_is_connected() check from
omap_modeset_init() as it became irrelevant: We are not adding dssdevs
if their connect failed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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/omap_drv.c
drivers/gpu/drm/omapdrm/omap_drv.h