[media] uvcvideo: Rename uvc_alloc_buffers to uvc_request_buffers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 21 Oct 2014 19:02:00 +0000 (16:02 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 25 Nov 2014 10:41:05 +0000 (08:41 -0200)
This brings the function name in line with the V4L2 API terminology.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_queue.c
drivers/media/usb/uvc/uvc_v4l2.c
drivers/media/usb/uvc/uvcvideo.h

index 708478f958e98e05dc37d2cae8cf27118385505f..5c11de0df4b64fe8dfbfaa68db4ea63c22be1242 100644 (file)
@@ -205,8 +205,8 @@ void uvc_queue_release(struct uvc_video_queue *queue)
  * V4L2 queue operations
  */
 
-int uvc_alloc_buffers(struct uvc_video_queue *queue,
-                     struct v4l2_requestbuffers *rb)
+int uvc_request_buffers(struct uvc_video_queue *queue,
+                       struct v4l2_requestbuffers *rb)
 {
        int ret;
 
index 1b6b6db30d98693ffa5f8a42ee789bacfa524926..5ba023be39263849a7c1f77f0f96edc5cdc39237 100644 (file)
@@ -690,7 +690,7 @@ static int uvc_ioctl_reqbufs(struct file *file, void *fh,
                return ret;
 
        mutex_lock(&stream->mutex);
-       ret = uvc_alloc_buffers(&stream->queue, rb);
+       ret = uvc_request_buffers(&stream->queue, rb);
        mutex_unlock(&stream->mutex);
        if (ret < 0)
                return ret;
index 344aedec9dfb7acef1ffd6ad2d8d6e5e743ce323..2dc247a0ce346f9c229dc2e70cbe601388d046bd 100644 (file)
@@ -624,7 +624,7 @@ extern struct uvc_entity *uvc_entity_by_id(struct uvc_device *dev, int id);
 extern int uvc_queue_init(struct uvc_video_queue *queue,
                enum v4l2_buf_type type, int drop_corrupted);
 extern void uvc_queue_release(struct uvc_video_queue *queue);
-extern int uvc_alloc_buffers(struct uvc_video_queue *queue,
+extern int uvc_request_buffers(struct uvc_video_queue *queue,
                struct v4l2_requestbuffers *rb);
 extern int uvc_query_buffer(struct uvc_video_queue *queue,
                struct v4l2_buffer *v4l2_buf);