summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/m5602/m5602_sensor.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_sensor.h
parent1a3dd5d91a46417e887e285e6d7ceb68097a8535 (diff)
downloadlinux-d9c700d415f05760f0129f798223cb4ac6a46d4b.tar.bz2
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_sensor.h')
-rw-r--r--drivers/media/video/gspca/m5602/m5602_sensor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_sensor.h b/drivers/media/video/gspca/m5602/m5602_sensor.h
index 5c8fb7abae54..0d3026936f2e 100644
--- a/drivers/media/video/gspca/m5602/m5602_sensor.h
+++ b/drivers/media/video/gspca/m5602/m5602_sensor.h
@@ -59,6 +59,9 @@ struct m5602_sensor {
/* Executed when the camera ends to send data */
int (*stop)(struct sd *sd);
+ /* Executed when the device is disconnected */
+ void (*disconnect)(struct sd *sd);
+
/* Performs a power down sequence */
int (*power_down)(struct sd *sd);
};