diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-03-28 07:09:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:57:51 -0400 |
commit | a4cf4cac2979a828e7cd0a3cd02d7a5308a44a7f (patch) | |
tree | b94943cd797a075ad96f9bb9310bae160aa67e39 /include/media | |
parent | 63e424856b4ab0652c58f75a2d2ecb9c1f95db27 (diff) |
V4L/DVB: v4l videobuf: use struct videobuf_buffer * instead of void * for videobuf_alloc
videobuf_alloc() returned a void *. Change to struct videobuf_buffer *
to get better type checking.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/videobuf-core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/videobuf-core.h b/include/media/videobuf-core.h index 22d5a02884ad..4497e23c9d29 100644 --- a/include/media/videobuf-core.h +++ b/include/media/videobuf-core.h | |||
@@ -127,7 +127,7 @@ struct videobuf_queue_ops { | |||
127 | struct videobuf_qtype_ops { | 127 | struct videobuf_qtype_ops { |
128 | u32 magic; | 128 | u32 magic; |
129 | 129 | ||
130 | void *(*alloc) (size_t size); | 130 | struct videobuf_buffer *(*alloc)(size_t size); |
131 | void *(*vmalloc) (struct videobuf_buffer *buf); | 131 | void *(*vmalloc) (struct videobuf_buffer *buf); |
132 | int (*iolock) (struct videobuf_queue *q, | 132 | int (*iolock) (struct videobuf_queue *q, |
133 | struct videobuf_buffer *vb, | 133 | struct videobuf_buffer *vb, |
@@ -182,7 +182,7 @@ int videobuf_waiton(struct videobuf_buffer *vb, int non_blocking, int intr); | |||
182 | int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb, | 182 | int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb, |
183 | struct v4l2_framebuffer *fbuf); | 183 | struct v4l2_framebuffer *fbuf); |
184 | 184 | ||
185 | void *videobuf_alloc(struct videobuf_queue* q); | 185 | struct videobuf_buffer *videobuf_alloc(struct videobuf_queue *q); |
186 | 186 | ||
187 | /* Used on videobuf-dvb */ | 187 | /* Used on videobuf-dvb */ |
188 | void *videobuf_queue_to_vmalloc(struct videobuf_queue *q, | 188 | void *videobuf_queue_to_vmalloc(struct videobuf_queue *q, |