aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@pengutronix.de>2008-04-22 13:46:02 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:51 -0400
commite9bcf6675d6da1a1e9925b2bdfc21f8d2330a1c5 (patch)
treebd22320636bb263366882256675af5f8a690d5d6 /drivers/media
parent50407f99a1fd7fcca74e53b1852dc70deb5114db (diff)
V4L/DVB (7376): Improve compile-time type-checking in videobuf
Make the dev member of the struct videobuf_queue of type "struct device *" to avoid future problems. Also change the prototype of the videobuf_queue_core_init() function. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/videobuf-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index 5ea635fac236..137a1ff4a149 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -120,7 +120,7 @@ int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
120 120
121void videobuf_queue_core_init(struct videobuf_queue *q, 121void videobuf_queue_core_init(struct videobuf_queue *q,
122 struct videobuf_queue_ops *ops, 122 struct videobuf_queue_ops *ops,
123 void *dev, 123 struct device *dev,
124 spinlock_t *irqlock, 124 spinlock_t *irqlock,
125 enum v4l2_buf_type type, 125 enum v4l2_buf_type type,
126 enum v4l2_field field, 126 enum v4l2_field field,