diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-08 10:19:44 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 12:43:11 -0300 |
commit | 3160fbc556aa2e60404fa4da35b3e13dd741a5a2 (patch) | |
tree | 51ea0abb1bfbda94749b7b088950942e52a085e5 /drivers/media/video/w9968cf.h | |
parent | 4e06839fc7221872d7868855c05659f08d1c9f3d (diff) | |
download | kernel_samsung_espresso10-3160fbc556aa2e60404fa4da35b3e13dd741a5a2.zip kernel_samsung_espresso10-3160fbc556aa2e60404fa4da35b3e13dd741a5a2.tar.gz kernel_samsung_espresso10-3160fbc556aa2e60404fa4da35b3e13dd741a5a2.tar.bz2 |
V4L/DVB (10874): w9968cf/ovcamchip: convert to v4l2_subdev.
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.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/w9968cf.h b/drivers/media/video/w9968cf.h index c598835..fdfc6a4 100644 --- a/drivers/media/video/w9968cf.h +++ b/drivers/media/video/w9968cf.h @@ -43,7 +43,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 */ @@ -265,7 +264,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 */ @@ -277,6 +276,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 * |