diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2023-01-05 14:52:58 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-01-15 23:45:15 +0200 |
commit | 716c330433e3ad6074d057092b98c09a989e17d8 (patch) | |
tree | b3c901dabd0078ec3463bf6759cbdf18182afdd8 /include | |
parent | a7c28150af42798263a30bedbe46f201b46fb486 (diff) | |
download | lwn-716c330433e3ad6074d057092b98c09a989e17d8.tar.gz lwn-716c330433e3ad6074d057092b98c09a989e17d8.zip |
media: uvcvideo: Use standard names for menus
Instead of duplicating the menu info, use the one from the core.
Also, do not use extra memory for 1:1 mappings.
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/uvcvideo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/uvcvideo.h b/include/uapi/linux/uvcvideo.h index 8288137387c0..d45d0c2ea252 100644 --- a/include/uapi/linux/uvcvideo.h +++ b/include/uapi/linux/uvcvideo.h @@ -36,9 +36,11 @@ UVC_CTRL_FLAG_GET_MAX | UVC_CTRL_FLAG_GET_RES | \ UVC_CTRL_FLAG_GET_DEF) +#define UVC_MENU_NAME_LEN 32 + struct uvc_menu_info { __u32 value; - __u8 name[32]; + __u8 name[UVC_MENU_NAME_LEN]; }; struct uvc_xu_control_mapping { |