summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-03-14 15:10:10 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-03-14 15:10:10 +0000
commit306bf265c2829d09b8f83b6ef60b54bcc3123b46 (patch)
tree229cac235bc680133b53b40368d7faf2c0cea7f4 /linux/include
parent3d6627c897e23b798970ef02d1039ef7a29066a6 (diff)
downloadmediapointer-dvb-s2-306bf265c2829d09b8f83b6ef60b54bcc3123b46.tar.gz
mediapointer-dvb-s2-306bf265c2829d09b8f83b6ef60b54bcc3123b46.tar.bz2
Improve compile-time type-checking in videobuf
From: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> 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 'linux/include')
-rw-r--r--linux/include/media/videobuf-core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/include/media/videobuf-core.h b/linux/include/media/videobuf-core.h
index b73f0ffa8..b94057eac 100644
--- a/linux/include/media/videobuf-core.h
+++ b/linux/include/media/videobuf-core.h
@@ -155,7 +155,7 @@ struct videobuf_queue {
struct semaphore vb_lock;
#endif
spinlock_t *irqlock;
- void *dev; /* on pci, points to struct pci_dev */
+ struct device *dev;
enum v4l2_buf_type type;
unsigned int inputs; /* for V4L2_BUF_FLAG_INPUT */
@@ -189,7 +189,7 @@ void *videobuf_alloc(struct videobuf_queue* q);
void videobuf_queue_core_init(struct videobuf_queue *q,
struct videobuf_queue_ops *ops,
- void *dev,
+ struct device *dev,
spinlock_t *irqlock,
enum v4l2_buf_type type,
enum v4l2_field field,