drm/omap: Factor out common mode validation code
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 21 Sep 2018 13:13:00 +0000 (16:13 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 18 Mar 2019 09:42:13 +0000 (11:42 +0200)
commitd68164fe29642270ffba64ed64b0178ef7d916bf
treec45b50d24194a87669042fcb39b36bb206b42081
parentd60dfaba4225d72e54ec887c5e307dd9fc0aa1db
drm/omap: Factor out common mode validation code

The encoder .atomic_check() and connector .mode_valid() operations both
walk through the dss devices in the pipeline to validate the mode.
Factor out the common code in a new omap_drm_connector_mode_fixup()
function.

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>
drivers/gpu/drm/omapdrm/omap_connector.c
drivers/gpu/drm/omapdrm/omap_connector.h
drivers/gpu/drm/omapdrm/omap_encoder.c