aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/videodev2.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2022-09-29 11:11:22 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-10-24 19:03:53 +0200
commite77eb66342c73946f7ed9ea68a6329f13b4343eb (patch)
treeb6adba378620a520cc4543fb8288da2d07d53ddf /include/uapi/linux/videodev2.h
parentmedia: coda: jpeg: Add check for kmalloc (diff)
downloadwireguard-linux-e77eb66342c73946f7ed9ea68a6329f13b4343eb.tar.xz
wireguard-linux-e77eb66342c73946f7ed9ea68a6329f13b4343eb.zip
videodev2.h: add p_s32 and p_s64 pointers
Added p_s32 and p_s64 pointers to the union in struct v4l2_ext_control to simplify INTEGER and INTEGER64 control array support. Internally the control framework handles such arrays just fine, but userspace is missing corresponding pointers to access array elements of these types. The internal union v4l2_ctrl_ptr which the control framework uses already has these types, they just were never added to the public API. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/uapi/linux/videodev2.h')
-rw-r--r--include/uapi/linux/videodev2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 86cae23cc446..a6f5c008a5a8 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1779,6 +1779,8 @@ struct v4l2_ext_control {
__u8 __user *p_u8;
__u16 __user *p_u16;
__u32 __user *p_u32;
+ __u32 __user *p_s32;
+ __u32 __user *p_s64;
struct v4l2_area __user *p_area;
struct v4l2_ctrl_h264_sps __user *p_h264_sps;
struct v4l2_ctrl_h264_pps *p_h264_pps;