aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/m5602/m5602_bridge.h
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2009-01-03 12:10:11 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-06 21:44:46 -0300
commitd9c700d415f05760f0129f798223cb4ac6a46d4b (patch)
treedf82be24a75ad853e69a5304a096eb7962b46ded /drivers/media/video/gspca/m5602/m5602_bridge.h
parentV4L/DVB (11422): gspca - m5602-ov9650: Replace a magic constant with a define (diff)
downloadlinux-dev-d9c700d415f05760f0129f798223cb4ac6a46d4b.tar.xz
linux-dev-d9c700d415f05760f0129f798223cb4ac6a46d4b.zip
V4L/DVB (11423): gspca - m5602-ov9650: Add a disconnect hook, setup a ctrl cache ctrl.
Reading and writing to a register doesn't always work reliably. Add a cache and ensure that it is deallocated properly upon module disconnect. Signed-off-by: Erik Andr?n <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/m5602/m5602_bridge.h')
-rw-r--r--drivers/media/video/gspca/m5602/m5602_bridge.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_bridge.h b/drivers/media/video/gspca/m5602/m5602_bridge.h
index de76a1613015..8f1cea6fd3bf 100644
--- a/drivers/media/video/gspca/m5602/m5602_bridge.h
+++ b/drivers/media/video/gspca/m5602/m5602_bridge.h
@@ -117,6 +117,9 @@ struct sd {
struct sd_desc *desc;
+ /* Sensor private data */
+ void *sensor_priv;
+
/* The current frame's id, used to detect frame boundaries */
u8 frame_id;