]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: v4l2-common: sort RGB formats in v4l2_format_info
authorSven Püschel <s.pueschel@pengutronix.de>
Wed, 20 May 2026 22:44:07 +0000 (00:44 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 21 May 2026 10:32:18 +0000 (12:32 +0200)
commit3bb5a7d25a2bdc6ad22af404fb6f2cca01e96aaf
tree9b8ff6f3c73523a3ee6216606341e20a237b5be8
parent4abd2f68950a296b6d547376d7d0f8b351e72f01
media: v4l2-common: sort RGB formats in v4l2_format_info

Sort the RGB formats in v4l2_format_info to match the format definitions
in include/uapi/linux/videodev2.h . Also introduce the same sections to
partition the list of formats and align the format info in each section.

The alignment of the 1 or 2 bytes RGB formats contains an additional
space in preparation of adding the missing formats to the list, as for
V4L2_PIX_FMT_ARGB555X an additional space is necessary.

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/v4l2-core/v4l2-common.c