aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ovcamchip/ovcamchip_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ovcamchip/ovcamchip_priv.h')
-rw-r--r--drivers/media/video/ovcamchip/ovcamchip_priv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/ovcamchip/ovcamchip_priv.h b/drivers/media/video/ovcamchip/ovcamchip_priv.h
index a05650faedda..4f07b78c88bc 100644
--- a/drivers/media/video/ovcamchip/ovcamchip_priv.h
+++ b/drivers/media/video/ovcamchip/ovcamchip_priv.h
@@ -16,6 +16,7 @@
16#define __LINUX_OVCAMCHIP_PRIV_H 16#define __LINUX_OVCAMCHIP_PRIV_H
17 17
18#include <linux/i2c.h> 18#include <linux/i2c.h>
19#include <media/v4l2-subdev.h>
19#include <media/ovcamchip.h> 20#include <media/ovcamchip.h>
20 21
21#ifdef DEBUG 22#ifdef DEBUG
@@ -46,6 +47,7 @@ struct ovcamchip_ops {
46}; 47};
47 48
48struct ovcamchip { 49struct ovcamchip {
50 struct v4l2_subdev sd;
49 struct ovcamchip_ops *sops; 51 struct ovcamchip_ops *sops;
50 void *spriv; /* Private data for OV7x10.c etc... */ 52 void *spriv; /* Private data for OV7x10.c etc... */
51 int subtype; /* = SEN_OV7610 etc... */ 53 int subtype; /* = SEN_OV7610 etc... */
@@ -53,6 +55,11 @@ struct ovcamchip {
53 int initialized; /* OVCAMCHIP_CMD_INITIALIZE was successful */ 55 int initialized; /* OVCAMCHIP_CMD_INITIALIZE was successful */
54}; 56};
55 57
58static inline struct ovcamchip *to_ovcamchip(struct v4l2_subdev *sd)
59{
60 return container_of(sd, struct ovcamchip, sd);
61}
62
56extern struct ovcamchip_ops ov6x20_ops; 63extern struct ovcamchip_ops ov6x20_ops;
57extern struct ovcamchip_ops ov6x30_ops; 64extern struct ovcamchip_ops ov6x30_ops;
58extern struct ovcamchip_ops ov7x10_ops; 65extern struct ovcamchip_ops ov7x10_ops;