]> 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)
commitb9d3dc1a774c63cf2bb6ea9ebaf3b9bb6c589f77
tree696b8b170d41e668d08392f31997371f5478bd2e
parenta81fe7035f5db7015df0d733b9e8232d86c07118
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