]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB: v4l videobuf: rename videobuf_queue_to_vmalloc to videobuf_queue_to_vaddr
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 28 Mar 2010 11:33:23 +0000 (08:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:52 +0000 (12:57 -0300)
Ths function returns the virtual kernel address of the buffer and has
nothing to do with allocation.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-core.c
drivers/media/video/videobuf-dvb.c
include/media/videobuf-core.h

index 26241a833894727e6625d052f9649ca30a0bd2bb..fabe45c4163ec0a563d5fbabe3cd2bcccb2612eb 100644 (file)
@@ -105,15 +105,14 @@ int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
 }
 EXPORT_SYMBOL_GPL(videobuf_iolock);
 
-void *videobuf_queue_to_vmalloc(struct videobuf_queue *q,
-                               struct videobuf_buffer *buf)
+void *videobuf_queue_to_vaddr(struct videobuf_queue *q,
+                             struct videobuf_buffer *buf)
 {
        if (q->int_ops->vaddr)
                return q->int_ops->vaddr(buf);
-       else
-               return NULL;
+       return NULL;
 }
-EXPORT_SYMBOL_GPL(videobuf_queue_to_vmalloc);
+EXPORT_SYMBOL_GPL(videobuf_queue_to_vaddr);
 
 /* --------------------------------------------------------------------- */
 
index 0afb62e63d99f615d29c76ef508f67209b27d28a..3f76398968b8e00eab33776bb5400bdfeab0b56b 100644 (file)
@@ -67,7 +67,7 @@ static int videobuf_dvb_thread(void *data)
                try_to_freeze();
 
                /* feed buffer data to demux */
-               outp = videobuf_queue_to_vmalloc (&dvb->dvbq, buf);
+               outp = videobuf_queue_to_vaddr(&dvb->dvbq, buf);
 
                if (buf->state == VIDEOBUF_DONE)
                        dvb_dmx_swfilter(&dvb->demux, outp,
index 8fe3254ed952a620095e52277a6cf18176884a7b..f73e297e373526c1bce8c7e51d752f35abb1a8a4 100644 (file)
@@ -185,8 +185,8 @@ int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
 struct videobuf_buffer *videobuf_alloc(struct videobuf_queue *q);
 
 /* Used on videobuf-dvb */
-void *videobuf_queue_to_vmalloc(struct videobuf_queue *q,
-                               struct videobuf_buffer *buf);
+void *videobuf_queue_to_vaddr(struct videobuf_queue *q,
+                             struct videobuf_buffer *buf);
 
 void videobuf_queue_core_init(struct videobuf_queue *q,
                         const struct videobuf_queue_ops *ops,