aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMichael Grzeschik <[email protected]>2023-01-27 00:14:55 +0100
committerGreg Kroah-Hartman <[email protected]>2023-01-31 09:40:42 +0100
commit8ecb17a86c0fbb86ea9fb4fa26e742600e945794 (patch)
treec4b2923d9a52e4615f2d8d4e64289307cba791a5 /include/linux
parent466be4c9a6f0b7810991b4ac6c3e55345ea63954 (diff)
usb: uvc: make uvc_format_desc table const
Since the uvc_fmts array can not be modified we declare it const and change every user of the uvc_format_by_guid function aswell. Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Daniel Scally <[email protected]> Tested-by: Daniel Scally <[email protected]> Signed-off-by: Michael Grzeschik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/uvc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/uvc.h b/include/linux/usb/uvc.h
index 8cebb46602a1..b0210c5c5406 100644
--- a/include/linux/usb/uvc.h
+++ b/include/linux/usb/uvc.h
@@ -154,6 +154,6 @@ struct uvc_format_desc {
u32 fcc;
};
-struct uvc_format_desc *uvc_format_by_guid(const u8 guid[16]);
+const struct uvc_format_desc *uvc_format_by_guid(const u8 guid[16]);
#endif /* __LINUX_V4L2_UVC_H */