]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Handle uvc menu translation inside uvc_set_le_value
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 3 Feb 2025 11:55:41 +0000 (11:55 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 3 Mar 2025 17:23:35 +0000 (18:23 +0100)
commit7f1556a5d826ec5195b76167528e485053f02d32
tree31de590aeb148b004124203ae40ef202f1081302
parent9109a0b4cb10fd681e9c6e9a4497a6fec5b91c39
media: uvcvideo: Handle uvc menu translation inside uvc_set_le_value

Be consistent with uvc_get_le_value() and do the menu translation there.

Note that in this case, the refactor does not provide much... but
consistency is a nice feature.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Yunke Cao <yunkec@google.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250203-uvc-roi-v17-5-5900a9fed613@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_ctrl.c