drm/sun4i: frontend: Determine input mode based on the number of planes
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 23 Nov 2018 09:24:51 +0000 (10:24 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 27 Nov 2018 08:55:16 +0000 (09:55 +0100)
commitae4ba1936ab97c6a2733a243370f303da3c11839
treefbec772699e73a7a731f82f6521412b114e4aeaa
parent9579f9190487cc99ac280beda5da8ba7c3414b92
drm/sun4i: frontend: Determine input mode based on the number of planes

Use the number of planes associated with the DRM format to determine the
input mode configuration instead of the format iteself. This way, the
helper can be used for all packed formats without future changes.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181123092515.2511-20-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_frontend.c