diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/videodev2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 4d88ee2d268e..bd2dc9431ac1 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
| @@ -1477,7 +1477,9 @@ struct v4l2_ext_control { | |||
| 1477 | 1477 | ||
| 1478 | struct v4l2_ext_controls { | 1478 | struct v4l2_ext_controls { |
| 1479 | union { | 1479 | union { |
| 1480 | #ifndef __KERNEL__ | ||
| 1480 | __u32 ctrl_class; | 1481 | __u32 ctrl_class; |
| 1482 | #endif | ||
| 1481 | __u32 which; | 1483 | __u32 which; |
| 1482 | }; | 1484 | }; |
| 1483 | __u32 count; | 1485 | __u32 count; |
| @@ -1487,7 +1489,10 @@ struct v4l2_ext_controls { | |||
| 1487 | }; | 1489 | }; |
| 1488 | 1490 | ||
| 1489 | #define V4L2_CTRL_ID_MASK (0x0fffffff) | 1491 | #define V4L2_CTRL_ID_MASK (0x0fffffff) |
| 1492 | #ifndef __KERNEL__ | ||
| 1490 | #define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL) | 1493 | #define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL) |
| 1494 | #endif | ||
| 1495 | #define V4L2_CTRL_ID2WHICH(id) ((id) & 0x0fff0000UL) | ||
| 1491 | #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000) | 1496 | #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000) |
| 1492 | #define V4L2_CTRL_MAX_DIMS (4) | 1497 | #define V4L2_CTRL_MAX_DIMS (4) |
| 1493 | #define V4L2_CTRL_WHICH_CUR_VAL 0 | 1498 | #define V4L2_CTRL_WHICH_CUR_VAL 0 |
