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

2018-12-05 Thread Maxime Ripard
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 form

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

2018-12-05 Thread Paul Kocialkowski
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