diff options
author | Daniel Scally <dan.scally@ideasonboard.com> | 2023-01-30 10:50:44 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-02 11:16:17 +0100 |
commit | a36afe7804612c524396e59f9521ed06e39bf62c (patch) | |
tree | 94a4a40712da5184dc65ea923cbd35449db3c761 /drivers/usb/gadget/function/u_uvc.h | |
parent | 3078212cafaece5dfebc7bd57d8c395be7862a5c (diff) | |
download | lwn-a36afe7804612c524396e59f9521ed06e39bf62c.tar.gz lwn-a36afe7804612c524396e59f9521ed06e39bf62c.zip |
usb: gadget: uvc: Add new enable_interrupt_ep attribute
Add a new attribute to the default control config group that allows
users to specify whether they want to enable the optional interrupt
endpoint for the VideoControl interface.
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-3-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/function/u_uvc.h')
-rw-r--r-- | drivers/usb/gadget/function/u_uvc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_uvc.h b/drivers/usb/gadget/function/u_uvc.h index 24b8681b0d6f..9d15bc2c7045 100644 --- a/drivers/usb/gadget/function/u_uvc.h +++ b/drivers/usb/gadget/function/u_uvc.h @@ -29,6 +29,8 @@ struct f_uvc_opts { unsigned int streaming_interface; char function_name[32]; + bool enable_interrupt_ep; + /* * Control descriptors array pointers for full-/high-speed and * super-speed. They point by default to the uvc_fs_control_cls and |