drm/omap: venc: Simplify mode setting by caching configuration
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 19 Sep 2018 22:47:17 +0000 (01:47 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 18 Mar 2019 09:42:12 +0000 (11:42 +0200)
commitd60dfaba4225d72e54ec887c5e307dd9fc0aa1db
tree665d9a0d7ad9fa5ab46e35bc4435a60486d5a25d
parent116c7721077cf82b942adaef146e97663247d972
drm/omap: venc: Simplify mode setting by caching configuration

The mode setting handler of the VENC stores the video mode internally,
to then convert it to a configuration when programming the hardware. The
stored mode is otherwise unused. Cache the configuration directly
instead.

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/dss/venc.c