]> git.baikalelectronics.ru Git - kernel.git/commit
usb: uvc: Enumerate valid values for color matching
authorDaniel Scally <dan.scally@ideasonboard.com>
Thu, 2 Feb 2023 11:41:37 +0000 (11:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:38 +0000 (13:55 +0100)
commit5212510b687e1184ac14b952746e9d2837e59a27
tree8a69e8c0593f5af501ccedd11b37699980c60cf3
parent05cc7a024c499d0ccccc87084b93d0f624499492
usb: uvc: Enumerate valid values for color matching

[ Upstream commit 0f0cdaa1c8a7ade74b8ab3fb928cf74af7d4c36f ]

The color matching descriptors defined in the UVC Specification
contain 3 fields with discrete numeric values representing particular
settings. Enumerate those values so that later code setting them can
be more readable.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230202114142.300858-2-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/uapi/linux/usb/video.h