aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-13 07:02:43 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:48 -0400
commitc0714f6cc6a7850062db41d5b2b8b90e5682ae41 (patch)
tree613844eec6820177fba20d290c99949878dbb219 /drivers/media/video/cx23885/cx23885.h
parent8bbd90ce80d39d372857235f00c7abb208bd9e4f (diff)
V4L/DVB (11295): cx23885: convert to v4l2_device.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885.h')
-rw-r--r--drivers/media/video/cx23885/cx23885.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h
index 779fc35b18d6..ba57643f1198 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -24,7 +24,7 @@
24#include <linux/i2c-algo-bit.h> 24#include <linux/i2c-algo-bit.h>
25#include <linux/kdev_t.h> 25#include <linux/kdev_t.h>
26 26
27#include <media/v4l2-common.h> 27#include <media/v4l2-device.h>
28#include <media/tuner.h> 28#include <media/tuner.h>
29#include <media/tveeprom.h> 29#include <media/tveeprom.h>
30#include <media/videobuf-dma-sg.h> 30#include <media/videobuf-dma-sg.h>
@@ -277,6 +277,7 @@ struct cx23885_tsport {
277struct cx23885_dev { 277struct cx23885_dev {
278 struct list_head devlist; 278 struct list_head devlist;
279 atomic_t refcount; 279 atomic_t refcount;
280 struct v4l2_device v4l2_dev;
280 281
281 /* pci stuff */ 282 /* pci stuff */
282 struct pci_dev *pci; 283 struct pci_dev *pci;
@@ -342,6 +343,11 @@ struct cx23885_dev {
342 343
343}; 344};
344 345
346static inline struct cx23885_dev *to_cx23885(struct v4l2_device *v4l2_dev)
347{
348 return container_of(v4l2_dev, struct cx23885_dev, v4l2_dev);
349}
350
345extern struct list_head cx23885_devlist; 351extern struct list_head cx23885_devlist;
346 352
347#define SRAM_CH01 0 /* Video A */ 353#define SRAM_CH01 0 /* Video A */