summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2009-01-06 15:59:42 +0100
committerErik Andr?n <erik.andren@gmail.com>2009-01-06 15:59:42 +0100
commit7c02d8dbb5d410ca9cc0af821a6d24a7f6412d86 (patch)
treed571633b58daad7cf952497dfd5bb7722ed6a720 /linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
parentc68a15e5fab71a90d3dfcd8d802e34bc626930e6 (diff)
downloadmediapointer-dvb-s2-7c02d8dbb5d410ca9cc0af821a6d24a7f6412d86.tar.gz
mediapointer-dvb-s2-7c02d8dbb5d410ca9cc0af821a6d24a7f6412d86.tar.bz2
gspca - m5602-mt9m111: Remove the unused power_down struct member
From: Erik Andr?n <erik.andren@gmail.com> The power_down sensor struct member is almost has no purpose in the current driver abstraction. Remove it. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_ov9650.c')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_ov9650.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
index 86e4719fb..1843ed3da 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
@@ -469,26 +469,9 @@ int ov9650_stop(struct sd *sd)
return m5602_write_sensor(sd, OV9650_COM2, &data, 1);
}
-int ov9650_power_down(struct sd *sd)
-{
- int i, err = 0;
- for (i = 0; i < ARRAY_SIZE(power_down_ov9650) && !err; i++) {
- u8 data = power_down_ov9650[i][2];
- if (power_down_ov9650[i][0] == SENSOR)
- err = m5602_write_sensor(sd,
- power_down_ov9650[i][1], &data, 1);
- else
- err = m5602_write_bridge(sd, power_down_ov9650[i][1],
- data);
- }
-
- return err;
-}
-
void ov9650_disconnect(struct sd *sd)
{
ov9650_stop(sd);
- ov9650_power_down(sd);
sd->sensor = NULL;
kfree(sd->sensor_priv);