aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/w9968cf.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-08 05:56:19 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:11 -0400
commit4e06839fc7221872d7868855c05659f08d1c9f3d (patch)
treee41d15ad4995e26bd1258827c03c55c9e828f625 /drivers/media/video/w9968cf.h
parent78175bf2c5e4beb0874aee27dcfce58c4c7d4fb4 (diff)
V4L/DVB (10873): w9968cf: add 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/w9968cf.h')
-rw-r--r--drivers/media/video/w9968cf.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/w9968cf.h b/drivers/media/video/w9968cf.h
index 30032e15e23c..c59883552545 100644
--- a/drivers/media/video/w9968cf.h
+++ b/drivers/media/video/w9968cf.h
@@ -33,6 +33,7 @@
33#include <linux/rwsem.h> 33#include <linux/rwsem.h>
34#include <linux/mutex.h> 34#include <linux/mutex.h>
35 35
36#include <media/v4l2-device.h>
36#include <media/ovcamchip.h> 37#include <media/ovcamchip.h>
37 38
38#include "w9968cf_vpp.h" 39#include "w9968cf_vpp.h"
@@ -195,10 +196,9 @@ enum w9968cf_vpp_flag {
195 196
196/* Main device driver structure */ 197/* Main device driver structure */
197struct w9968cf_device { 198struct w9968cf_device {
198 struct device dev; /* device structure */
199
200 enum w9968cf_model_id id; /* private device identifier */ 199 enum w9968cf_model_id id; /* private device identifier */
201 200
201 struct v4l2_device v4l2_dev;
202 struct video_device* v4ldev; /* -> V4L structure */ 202 struct video_device* v4ldev; /* -> V4L structure */
203 struct list_head v4llist; /* entry of the list of V4L cameras */ 203 struct list_head v4llist; /* entry of the list of V4L cameras */
204 204
@@ -291,14 +291,14 @@ struct w9968cf_device {
291 if ( ((specific_debug) && (debug == (level))) || \ 291 if ( ((specific_debug) && (debug == (level))) || \
292 ((!specific_debug) && (debug >= (level))) ) { \ 292 ((!specific_debug) && (debug >= (level))) ) { \
293 if ((level) == 1) \ 293 if ((level) == 1) \
294 dev_err(&cam->dev, fmt "\n", ## args); \ 294 v4l2_err(&cam->v4l2_dev, fmt "\n", ## args); \
295 else if ((level) == 2 || (level) == 3) \ 295 else if ((level) == 2 || (level) == 3) \
296 dev_info(&cam->dev, fmt "\n", ## args); \ 296 v4l2_info(&cam->v4l2_dev, fmt "\n", ## args); \
297 else if ((level) == 4) \ 297 else if ((level) == 4) \
298 dev_warn(&cam->dev, fmt "\n", ## args); \ 298 v4l2_warn(&cam->v4l2_dev, fmt "\n", ## args); \
299 else if ((level) >= 5) \ 299 else if ((level) >= 5) \
300 dev_info(&cam->dev, "[%s:%d] " fmt "\n", \ 300 v4l2_info(&cam->v4l2_dev, "[%s:%d] " fmt "\n", \
301 __func__, __LINE__ , ## args); \ 301 __func__, __LINE__ , ## args); \
302 } \ 302 } \
303} 303}
304/* For generic kernel (not device specific) messages */ 304/* For generic kernel (not device specific) messages */
@@ -321,7 +321,7 @@ struct w9968cf_device {
321 321
322#undef PDBG 322#undef PDBG
323#define PDBG(fmt, args...) \ 323#define PDBG(fmt, args...) \
324dev_info(&cam->dev, "[%s:%d] " fmt "\n", __func__, __LINE__ , ## args); 324v4l2_info(&cam->v4l2_dev, "[%s:%d] " fmt "\n", __func__, __LINE__ , ## args);
325 325
326#undef PDBGG 326#undef PDBGG
327#define PDBGG(fmt, args...) do {;} while(0); /* nothing: it's a placeholder */ 327#define PDBGG(fmt, args...) do {;} while(0); /* nothing: it's a placeholder */