aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/w9968cf.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/w9968cf.h')
-rw-r--r--drivers/media/video/w9968cf.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/w9968cf.h b/drivers/media/video/w9968cf.h
index c59883552545..fdfc6a4e1c8f 100644
--- a/drivers/media/video/w9968cf.h
+++ b/drivers/media/video/w9968cf.h
@@ -43,7 +43,6 @@
43 * Default values * 43 * Default values *
44 ****************************************************************************/ 44 ****************************************************************************/
45 45
46#define W9968CF_OVMOD_LOAD 1 /* automatic 'ovcamchip' module loading */
47#define W9968CF_VPPMOD_LOAD 1 /* automatic 'w9968cf-vpp' module loading */ 46#define W9968CF_VPPMOD_LOAD 1 /* automatic 'w9968cf-vpp' module loading */
48 47
49/* Comment/uncomment the following line to enable/disable debugging messages */ 48/* Comment/uncomment the following line to enable/disable debugging messages */
@@ -265,7 +264,7 @@ struct w9968cf_device {
265 264
266 /* I2C interface to kernel */ 265 /* I2C interface to kernel */
267 struct i2c_adapter i2c_adapter; 266 struct i2c_adapter i2c_adapter;
268 struct i2c_client* sensor_client; 267 struct v4l2_subdev *sensor_sd;
269 268
270 /* Locks */ 269 /* Locks */
271 struct mutex dev_mutex, /* for probe, disconnect,open and close */ 270 struct mutex dev_mutex, /* for probe, disconnect,open and close */
@@ -277,6 +276,11 @@ struct w9968cf_device {
277 char command[16]; /* name of the program holding the device */ 276 char command[16]; /* name of the program holding the device */
278}; 277};
279 278
279static inline struct w9968cf_device *to_cam(struct v4l2_device *v4l2_dev)
280{
281 return container_of(v4l2_dev, struct w9968cf_device, v4l2_dev);
282}
283
280 284
281/**************************************************************************** 285/****************************************************************************
282 * Macros for debugging * 286 * Macros for debugging *