diff options
author | 2020-04-06 18:39:03 +0200 | |
---|---|---|
committer | 2020-04-21 13:21:52 +0200 | |
commit | 74cd3984f13381049627cfa260fd87e6fcd31add (patch) | |
tree | f320c138f53d68e32aec13e76a9275e9e50dd186 /drivers/media/usb/pwc/pwc-ctrl.c | |
parent | media: imx: utils: Make imx_media_pixfmt handle variable number of codes (diff) | |
download | wireguard-linux-74cd3984f13381049627cfa260fd87e6fcd31add.tar.xz wireguard-linux-74cd3984f13381049627cfa260fd87e6fcd31add.zip |
media: imx: utils: Split find|enum_format into fourcc and mbus functions
To make the code easier to follow, split up find_format() into separate
search functions for pixel formats and media-bus codes, and inline
find_format() into the exported functions imx_media_find_format()
and imx_media_find_mbus_format().
Do the equivalent for enum_format().
Also add comment blocks for the exported find|enum functions.
The convenience functions imx_media_find_ipu_format() and
imx_media_enum_ipu_format() can now be made inline and moved to
imx-media.h.
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/usb/pwc/pwc-ctrl.c')
0 files changed, 0 insertions, 0 deletions