[PATCH v4 04/22] drm/sun4i: frontend: Pass DRM format info to input format helpers

Maxime Ripard maxime.ripard at bootlin.com
Wed Dec 5 15:35:45 UTC 2018


On Wed, Dec 05, 2018 at 09:36:45AM +0100, Paul Kocialkowski wrote:
> 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 at bootlin.com>

Acked-by: Maxime Ripard <maxime.ripard at bootlin.com>

Maxime

-- 
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181205/3de78a68/attachment.sig>


More information about the dri-devel mailing list