[PATCH v5 1/2] media: uvcvideo: Do not parse bmVideoStandards

From: Ricardo Ribalda

Date: Tue Nov 03 2026 - 10:13:28 EST


bmVideoStandards is write only, so there is no need to parse it.

Remove it.

Reviewed-by: Hans de Goede <johannes.goede@xxxxxxxxxxxxxxxx>
Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>
---
drivers/media/usb/uvc/uvc_driver.c | 2 --
drivers/media/usb/uvc/uvcvideo.h | 1 -
2 files changed, 3 deletions(-)

diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index cbc14569716b..7f9f829ca6c3 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -1188,8 +1188,6 @@ static int uvc_parse_standard_control(struct uvc_device *dev,
unit->processing.bControlSize = buffer[7];
unit->processing.bmControls = (u8 *)unit + sizeof(*unit);
memcpy(unit->processing.bmControls, &buffer[8], n);
- if (dev->uvc_version >= 0x0110)
- unit->processing.bmVideoStandards = buffer[9+n];

uvc_entity_set_name(dev, unit, "Processing", buffer[8+n]);

diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index af8cef94ffff..7f4f11824dbe 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -228,7 +228,6 @@ struct uvc_entity {
u16 wMaxMultiplier;
u8 bControlSize;
u8 *bmControls;
- u8 bmVideoStandards;
} processing;

struct {

--
2.56.0.385.gac671c819a-goog