diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-11-21 15:15:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 08:30:46 -0400 |
commit | 5f7088127e800df2cd5ff08140bdca087ab0fbac (patch) | |
tree | 1ab1b7e3d3581d7b794b5576ff25bc3d47e66739 /drivers/media/video/uvc/uvc_v4l2.c | |
parent | f411f103822379bab356345430f097bdae3440e5 (diff) |
[media] uvcvideo: Make the API public
Move the public API definitions to include/linux/uvcvideo.h and bump the
version number to 1.1.0. Compatibility with the old API is kept,
application can still be compiled against the private header and will
not break.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvc_v4l2.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 2e2a556d1666..6e8aad44c4bd 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -1036,24 +1036,25 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
1036 | * UVCIOC_CTRL_GET and UVCIOC_CTRL_SET are deprecated and scheduled for | 1036 | * UVCIOC_CTRL_GET and UVCIOC_CTRL_SET are deprecated and scheduled for |
1037 | * removal in 2.6.42. | 1037 | * removal in 2.6.42. |
1038 | */ | 1038 | */ |
1039 | case UVCIOC_CTRL_ADD: | 1039 | case __UVCIOC_CTRL_ADD: |
1040 | uvc_v4l2_ioctl_warn(); | 1040 | uvc_v4l2_ioctl_warn(); |
1041 | return -EEXIST; | 1041 | return -EEXIST; |
1042 | 1042 | ||
1043 | case UVCIOC_CTRL_MAP_OLD: | 1043 | case __UVCIOC_CTRL_MAP_OLD: |
1044 | uvc_v4l2_ioctl_warn(); | 1044 | uvc_v4l2_ioctl_warn(); |
1045 | case __UVCIOC_CTRL_MAP: | ||
1045 | case UVCIOC_CTRL_MAP: | 1046 | case UVCIOC_CTRL_MAP: |
1046 | return uvc_ioctl_ctrl_map(chain, arg, | 1047 | return uvc_ioctl_ctrl_map(chain, arg, |
1047 | cmd == UVCIOC_CTRL_MAP_OLD); | 1048 | cmd == __UVCIOC_CTRL_MAP_OLD); |
1048 | 1049 | ||
1049 | case UVCIOC_CTRL_GET: | 1050 | case __UVCIOC_CTRL_GET: |
1050 | case UVCIOC_CTRL_SET: | 1051 | case __UVCIOC_CTRL_SET: |
1051 | { | 1052 | { |
1052 | struct uvc_xu_control *xctrl = arg; | 1053 | struct uvc_xu_control *xctrl = arg; |
1053 | struct uvc_xu_control_query xqry = { | 1054 | struct uvc_xu_control_query xqry = { |
1054 | .unit = xctrl->unit, | 1055 | .unit = xctrl->unit, |
1055 | .selector = xctrl->selector, | 1056 | .selector = xctrl->selector, |
1056 | .query = cmd == UVCIOC_CTRL_GET | 1057 | .query = cmd == __UVCIOC_CTRL_GET |
1057 | ? UVC_GET_CUR : UVC_SET_CUR, | 1058 | ? UVC_GET_CUR : UVC_SET_CUR, |
1058 | .size = xctrl->size, | 1059 | .size = xctrl->size, |
1059 | .data = xctrl->data, | 1060 | .data = xctrl->data, |