]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: frontend: Pass DRM format info to input format helpers
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 18 Jan 2019 14:51:14 +0000 (15:51 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 18 Jan 2019 18:00:45 +0000 (19:00 +0100)
commiteb206f048e7931b6d058bd5f839888a76a951fbc
tree696b8b170d41e668d08392f31997371f5478bd2e
parent040fe4fd5c99fab0c341c8cf160ece899178f362
drm/sun4i: frontend: Pass DRM format info to input format helpers

The helper returning the input mode needs to know the number of planes
for the provided format. Passing the fourcc requires iterating through
the format info list in order to return the number of planes.

Pass the DRM format info structure directly instead to all helpers
related to configuring the input format, since it's available to the
caller. Also rename the input format in the caller function to keep
things consistent.

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