diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-08 14:19:44 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-08 14:19:44 +0100 |
commit | 74a6094f9f289036473f782e306a3bdd2d41ce34 (patch) | |
tree | bd81c7c17413c7c5fa003464a54df86caa36d699 /linux/drivers/media/video/w9968cf.h | |
parent | ca54d2e82573c1440b4e32208496dd4f79b01059 (diff) | |
download | mediapointer-dvb-s2-74a6094f9f289036473f782e306a3bdd2d41ce34.tar.gz mediapointer-dvb-s2-74a6094f9f289036473f782e306a3bdd2d41ce34.tar.bz2 |
w9968cf/ovcamchip: convert to v4l2_subdev.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/w9968cf.h')
-rw-r--r-- | linux/drivers/media/video/w9968cf.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/drivers/media/video/w9968cf.h b/linux/drivers/media/video/w9968cf.h index 184f96311..989d414d6 100644 --- a/linux/drivers/media/video/w9968cf.h +++ b/linux/drivers/media/video/w9968cf.h @@ -44,7 +44,6 @@ * Default values * ****************************************************************************/ -#define W9968CF_OVMOD_LOAD 1 /* automatic 'ovcamchip' module loading */ #define W9968CF_VPPMOD_LOAD 1 /* automatic 'w9968cf-vpp' module loading */ /* Comment/uncomment the following line to enable/disable debugging messages */ @@ -266,7 +265,7 @@ struct w9968cf_device { /* I2C interface to kernel */ struct i2c_adapter i2c_adapter; - struct i2c_client* sensor_client; + struct v4l2_subdev *sensor_sd; /* Locks */ struct mutex dev_mutex, /* for probe, disconnect,open and close */ @@ -278,6 +277,11 @@ struct w9968cf_device { char command[16]; /* name of the program holding the device */ }; +static inline struct w9968cf_device *to_cam(struct v4l2_device *v4l2_dev) +{ + return container_of(v4l2_dev, struct w9968cf_device, v4l2_dev); +} + /**************************************************************************** * Macros for debugging * |