diff options
author | Erik Andrén <erik.andren@gmail.com> | 2008-11-27 07:58:29 +0100 |
---|---|---|
committer | Erik Andrén <erik.andren@gmail.com> | 2008-11-27 07:58:29 +0100 |
commit | 78c81fef14409a4ac0fdcd42958b1eb1e85abdcb (patch) | |
tree | db842d471f650b5464d07c5664fd8907e6611b91 | |
parent | 35f33378721e6f823dde92b83dd9f37348905cd1 (diff) | |
download | mediapointer-dvb-s2-78c81fef14409a4ac0fdcd42958b1eb1e85abdcb.tar.gz mediapointer-dvb-s2-78c81fef14409a4ac0fdcd42958b1eb1e85abdcb.tar.bz2 |
Backed out changeset 394ff1552cd4
7 files changed, 4 insertions, 21 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_core.c b/linux/drivers/media/video/gspca/m5602/m5602_core.c index d86b905cb..1d1fb541f 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_core.c +++ b/linux/drivers/media/video/gspca/m5602/m5602_core.c @@ -85,9 +85,6 @@ int m5602_read_sensor(struct sd *sd, const u8 address, { int err, i; - if (!len || (len > sd->sensor->i2c_regW)) - return -EINVAL; - do { err = m5602_read_bridge(sd, M5602_XB_I2C_STATUS, i2c_data); } while ((*i2c_data & I2C_BUSY) && !err); @@ -105,11 +102,9 @@ int m5602_read_sensor(struct sd *sd, const u8 address, if (err < 0) goto out; - if (sd->sensor->i2c_need_flush) { - err = m5602_write_bridge(sd, M5602_XB_I2C_CTRL, 0x08); - if (err < 0) - goto out; - } + err = m5602_write_bridge(sd, M5602_XB_I2C_CTRL, 0x08); + if (err < 0) + goto out; for (i = 0; (i < len) && !err; i++) { err = m5602_read_bridge(sd, M5602_XB_I2C_DATA, &(i2c_data[i])); diff --git a/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h b/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h index db64c122b..763b17ee6 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h +++ b/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h @@ -102,7 +102,6 @@ static struct m5602_sensor mt9m111 = { .i2c_slave_id = 0xba, .i2c_regW = 2, - .i2c_need_flush = 0, .probe = mt9m111_probe, .init = mt9m111_init, diff --git a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.h b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.h index 732447932..1f33a7b8d 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.h +++ b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.h @@ -152,8 +152,6 @@ static struct m5602_sensor ov9650 = { .name = "OV9650", .i2c_slave_id = 0x60, .i2c_regW = 1, - .i2c_need_flush = 1, - .probe = ov9650_probe, .init = ov9650_init, .power_down = ov9650_power_down, diff --git a/linux/drivers/media/video/gspca/m5602/m5602_po1030.h b/linux/drivers/media/video/gspca/m5602/m5602_po1030.h index a44a4ac6b..c4dad6449 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_po1030.h +++ b/linux/drivers/media/video/gspca/m5602/m5602_po1030.h @@ -149,7 +149,6 @@ static struct m5602_sensor po1030 = { .i2c_slave_id = 0xdc, .i2c_regW = 1, - .i2c_need_flush = 1, .probe = po1030_probe, .init = po1030_init, diff --git a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.h b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.h index 8088e8ea4..a38103a88 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.h +++ b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.h @@ -83,12 +83,9 @@ static struct m5602_sensor s5k4aa = { .name = "S5K4AA", .probe = s5k4aa_probe, .init = s5k4aa_init, - + .power_down = s5k4aa_power_down, .i2c_slave_id = 0x5a, .i2c_regW = 2, - .i2c_need_flush = 1, - - .power_down = s5k4aa_power_down, .nctrls = 4, .ctrls = { { diff --git a/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.h b/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.h index e721229eb..735701127 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.h +++ b/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.h @@ -65,11 +65,8 @@ static struct m5602_sensor s5k83a = { .probe = s5k83a_probe, .init = s5k83a_init, .power_down = s5k83a_power_down, - .i2c_slave_id = 0x5a, .i2c_regW = 2, - .i2c_need_flush = 0, - .nctrls = 5, .ctrls = { { diff --git a/linux/drivers/media/video/gspca/m5602/m5602_sensor.h b/linux/drivers/media/video/gspca/m5602/m5602_sensor.h index 0f6e1d83f..23c0ef948 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_sensor.h +++ b/linux/drivers/media/video/gspca/m5602/m5602_sensor.h @@ -52,8 +52,6 @@ struct m5602_sensor { /* Width of each i2c register (in bytes) */ u8 i2c_regW; - u8 i2c_need_flush; - /* Probes if the sensor is connected */ int (*probe)(struct sd *sd); |