diff options
author | Erik Andr?n <erik.andren@gmail.com> | 2009-01-03 16:10:11 +0100 |
---|---|---|
committer | Erik Andr?n <erik.andren@gmail.com> | 2009-01-03 16:10:11 +0100 |
commit | b91431d4d5b8bc688f4bbf37bfd838fb0a050e93 (patch) | |
tree | 29da3da699c422e7574152707c5fc52838aa9555 /linux/drivers/media/video/gspca/m5602/m5602_sensor.h | |
parent | 434db44e6232d61ea1fc15b8d66e1a30a2ba67b6 (diff) | |
download | mediapointer-dvb-s2-b91431d4d5b8bc688f4bbf37bfd838fb0a050e93.tar.gz mediapointer-dvb-s2-b91431d4d5b8bc688f4bbf37bfd838fb0a050e93.tar.bz2 |
gspca - m5602-ov9650: Add a disconnect hook, setup a ctrl cache ctrl.
From: Erik Andr?n <erik.andren@gmail.com>
Reading and writing to a register doesn't always work reliably. Add a cache
and ensure that it is deallocated properly upon module disconnect.
Priority: normal
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_sensor.h')
-rw-r--r-- | linux/drivers/media/video/gspca/m5602/m5602_sensor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_sensor.h b/linux/drivers/media/video/gspca/m5602/m5602_sensor.h index 5c8fb7aba..0d3026936 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_sensor.h +++ b/linux/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); }; |