summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2023-01-27 00:14:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-31 09:40:43 +0100
commit2d83eb5d24e1c8dba386928fcbf76d3b581a632d (patch)
tree20b60a9cfea786ce45b84aed5b046e0f50890c8f /include/linux/usb
parent8ecb17a86c0fbb86ea9fb4fa26e742600e945794 (diff)
downloadlinux-stable-2d83eb5d24e1c8dba386928fcbf76d3b581a632d.tar.gz
linux-stable-2d83eb5d24e1c8dba386928fcbf76d3b581a632d.tar.bz2
linux-stable-2d83eb5d24e1c8dba386928fcbf76d3b581a632d.zip
usb: uvc: use v4l2_fill_fmtdesc instead of open coded format name
Since v4l2_fill_fmtdesc will be called in the ioctl v4l_enum_fmt anyway. We can set the format description and compressed flag from v4l_fill_fmtdesc and can remove the extra name field in uvc_format_desc. Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Tested-by: Daniel Scally <dan.scally@ideasonboard.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://lore.kernel.org/r/20230126231456.3402323-6-m.grzeschik@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/uvc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/usb/uvc.h b/include/linux/usb/uvc.h
index b0210c5c5406..88d96095bcb1 100644
--- a/include/linux/usb/uvc.h
+++ b/include/linux/usb/uvc.h
@@ -149,7 +149,6 @@
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
struct uvc_format_desc {
- char *name;
u8 guid[16];
u32 fcc;
};