diff options
author | Brandon Philips <bphilips@suse.de> | 2008-02-04 18:52:21 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-18 09:15:13 -0500 |
commit | 384b835aed8acf341d99969b58d27434685bdd3d (patch) | |
tree | ef913385984bc4a020a8b65533eed6544f37f5f9 /drivers | |
parent | 18c0ecf16e1caa266e12319b5ab82d80e8a3ccf0 (diff) |
V4L/DVB (7150): [v4l] convert videbuf_vmalloc_memory to videobuf_vmalloc_memory
Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/videobuf-vmalloc.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c index 03b3b41cbb62..5266ecc91dab 100644 --- a/drivers/media/video/videobuf-vmalloc.c +++ b/drivers/media/video/videobuf-vmalloc.c | |||
@@ -107,7 +107,7 @@ static struct vm_operations_struct videobuf_vm_ops = | |||
107 | 107 | ||
108 | static void *__videobuf_alloc(size_t size) | 108 | static void *__videobuf_alloc(size_t size) |
109 | { | 109 | { |
110 | struct videbuf_vmalloc_memory *mem; | 110 | struct videobuf_vmalloc_memory *mem; |
111 | struct videobuf_buffer *vb; | 111 | struct videobuf_buffer *vb; |
112 | 112 | ||
113 | vb = kzalloc(size+sizeof(*mem),GFP_KERNEL); | 113 | vb = kzalloc(size+sizeof(*mem),GFP_KERNEL); |
@@ -127,9 +127,7 @@ static int __videobuf_iolock (struct videobuf_queue* q, | |||
127 | struct v4l2_framebuffer *fbuf) | 127 | struct v4l2_framebuffer *fbuf) |
128 | { | 128 | { |
129 | int pages; | 129 | int pages; |
130 | 130 | struct videobuf_vmalloc_memory *mem=vb->priv; | |
131 | struct videbuf_vmalloc_memory *mem=vb->priv; | ||
132 | |||
133 | 131 | ||
134 | BUG_ON(!mem); | 132 | BUG_ON(!mem); |
135 | 133 | ||
@@ -195,7 +193,7 @@ static int __videobuf_mmap_free(struct videobuf_queue *q) | |||
195 | static int __videobuf_mmap_mapper(struct videobuf_queue *q, | 193 | static int __videobuf_mmap_mapper(struct videobuf_queue *q, |
196 | struct vm_area_struct *vma) | 194 | struct vm_area_struct *vma) |
197 | { | 195 | { |
198 | struct videbuf_vmalloc_memory *mem; | 196 | struct videobuf_vmalloc_memory *mem; |
199 | struct videobuf_mapping *map; | 197 | struct videobuf_mapping *map; |
200 | unsigned int first; | 198 | unsigned int first; |
201 | int retval; | 199 | int retval; |
@@ -267,7 +265,7 @@ static int __videobuf_copy_to_user ( struct videobuf_queue *q, | |||
267 | char __user *data, size_t count, | 265 | char __user *data, size_t count, |
268 | int nonblocking ) | 266 | int nonblocking ) |
269 | { | 267 | { |
270 | struct videbuf_vmalloc_memory *mem=q->read_buf->priv; | 268 | struct videobuf_vmalloc_memory *mem=q->read_buf->priv; |
271 | BUG_ON (!mem); | 269 | BUG_ON (!mem); |
272 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); | 270 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); |
273 | 271 | ||
@@ -288,7 +286,7 @@ static int __videobuf_copy_stream ( struct videobuf_queue *q, | |||
288 | int vbihack, int nonblocking ) | 286 | int vbihack, int nonblocking ) |
289 | { | 287 | { |
290 | unsigned int *fc; | 288 | unsigned int *fc; |
291 | struct videbuf_vmalloc_memory *mem=q->read_buf->priv; | 289 | struct videobuf_vmalloc_memory *mem=q->read_buf->priv; |
292 | BUG_ON (!mem); | 290 | BUG_ON (!mem); |
293 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); | 291 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); |
294 | 292 | ||
@@ -341,7 +339,7 @@ EXPORT_SYMBOL_GPL(videobuf_queue_vmalloc_init); | |||
341 | 339 | ||
342 | void *videobuf_to_vmalloc (struct videobuf_buffer *buf) | 340 | void *videobuf_to_vmalloc (struct videobuf_buffer *buf) |
343 | { | 341 | { |
344 | struct videbuf_vmalloc_memory *mem=buf->priv; | 342 | struct videobuf_vmalloc_memory *mem=buf->priv; |
345 | BUG_ON (!mem); | 343 | BUG_ON (!mem); |
346 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); | 344 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); |
347 | 345 | ||
@@ -351,7 +349,7 @@ EXPORT_SYMBOL_GPL(videobuf_to_vmalloc); | |||
351 | 349 | ||
352 | void videobuf_vmalloc_free (struct videobuf_buffer *buf) | 350 | void videobuf_vmalloc_free (struct videobuf_buffer *buf) |
353 | { | 351 | { |
354 | struct videbuf_vmalloc_memory *mem=buf->priv; | 352 | struct videobuf_vmalloc_memory *mem=buf->priv; |
355 | BUG_ON (!mem); | 353 | BUG_ON (!mem); |
356 | 354 | ||
357 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); | 355 | MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); |