diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-06-17 10:11:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 14:33:55 -0400 |
commit | 1b4e21c4f62eae6bdcb3e7bfdfc52171a24f3689 (patch) | |
tree | c06dabaeb7c4bcbcc1b734dda461c738e27d73d8 /include/linux/usb | |
parent | 561474c2d2a1e212ea186e0b65cc69fb330e7bd5 (diff) |
V4L/DVB: uvcvideo: Define control information bits using macros
Use the macros instead of hardcoding numerical constants for the
controls information bitfield.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/video.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/usb/video.h b/include/linux/usb/video.h index be436d9ee479..2d5b7fc6a265 100644 --- a/include/linux/usb/video.h +++ b/include/linux/usb/video.h | |||
@@ -160,5 +160,12 @@ | |||
160 | #define UVC_STATUS_TYPE_CONTROL 1 | 160 | #define UVC_STATUS_TYPE_CONTROL 1 |
161 | #define UVC_STATUS_TYPE_STREAMING 2 | 161 | #define UVC_STATUS_TYPE_STREAMING 2 |
162 | 162 | ||
163 | /* 4.1.2. Control Capabilities */ | ||
164 | #define UVC_CONTROL_CAP_GET (1 << 0) | ||
165 | #define UVC_CONTROL_CAP_SET (1 << 1) | ||
166 | #define UVC_CONTROL_CAP_DISABLED (1 << 2) | ||
167 | #define UVC_CONTROL_CAP_AUTOUPDATE (1 << 3) | ||
168 | #define UVC_CONTROL_CAP_ASYNCHRONOUS (1 << 4) | ||
169 | |||
163 | #endif /* __LINUX_USB_VIDEO_H */ | 170 | #endif /* __LINUX_USB_VIDEO_H */ |
164 | 171 | ||