diff options
author | Erik Andrén <erik.andren@gmail.com> | 2008-11-27 11:47:21 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:39:55 -0500 |
commit | 2f5ded9b99fa2cfa86a0f08993a932c1e6b47560 (patch) | |
tree | 03fde476c7266e22a2b44bf268e59e62e6932784 /drivers/media/video/gspca | |
parent | c061c97e8db75eb5bab808dcfa93df3767c97b5a (diff) |
V4L/DVB (10022): m5602: Remove the po1030 read_sensor function
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')
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_po1030.c | 33 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_po1030.h | 3 |
2 files changed, 0 insertions, 36 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_po1030.c b/drivers/media/video/gspca/m5602/m5602_po1030.c index ae257a9a5e37..6ec4d2c6315c 100644 --- a/drivers/media/video/gspca/m5602/m5602_po1030.c +++ b/drivers/media/video/gspca/m5602/m5602_po1030.c | |||
@@ -66,39 +66,6 @@ sensor_found: | |||
66 | return 0; | 66 | return 0; |
67 | } | 67 | } |
68 | 68 | ||
69 | int po1030_read_sensor(struct sd *sd, const u8 address, | ||
70 | u8 *i2c_data, const u8 len) | ||
71 | { | ||
72 | int err, i; | ||
73 | |||
74 | do { | ||
75 | err = m5602_read_bridge(sd, M5602_XB_I2C_STATUS, i2c_data); | ||
76 | } while ((*i2c_data & I2C_BUSY) && !err); | ||
77 | |||
78 | err = m5602_write_bridge(sd, M5602_XB_I2C_DEV_ADDR, | ||
79 | sd->sensor->i2c_slave_id); | ||
80 | if (err < 0) | ||
81 | goto out; | ||
82 | err = m5602_write_bridge(sd, M5602_XB_I2C_REG_ADDR, address); | ||
83 | if (err < 0) | ||
84 | goto out; | ||
85 | err = m5602_write_bridge(sd, M5602_XB_I2C_CTRL, 0x10 + len); | ||
86 | if (err < 0) | ||
87 | goto out; | ||
88 | err = m5602_write_bridge(sd, M5602_XB_I2C_CTRL, 0x08); | ||
89 | if (err < 0) | ||
90 | goto out; | ||
91 | |||
92 | for (i = 0; (i < len) && !err; i++) { | ||
93 | err = m5602_read_bridge(sd, M5602_XB_I2C_DATA, &(i2c_data[i])); | ||
94 | |||
95 | PDEBUG(D_CONF, "Reading sensor register " | ||
96 | "0x%x containing 0x%x ", address, *i2c_data); | ||
97 | } | ||
98 | out: | ||
99 | return err; | ||
100 | } | ||
101 | |||
102 | int po1030_init(struct sd *sd) | 69 | int po1030_init(struct sd *sd) |
103 | { | 70 | { |
104 | int i, err = 0; | 71 | int i, err = 0; |
diff --git a/drivers/media/video/gspca/m5602/m5602_po1030.h b/drivers/media/video/gspca/m5602/m5602_po1030.h index c4dad64496c6..3ca5a02182db 100644 --- a/drivers/media/video/gspca/m5602/m5602_po1030.h +++ b/drivers/media/video/gspca/m5602/m5602_po1030.h | |||
@@ -128,9 +128,6 @@ int po1030_probe(struct sd *sd); | |||
128 | int po1030_init(struct sd *sd); | 128 | int po1030_init(struct sd *sd); |
129 | int po1030_power_down(struct sd *sd); | 129 | int po1030_power_down(struct sd *sd); |
130 | 130 | ||
131 | int po1030_read_sensor(struct sd *sd, const u8 address, | ||
132 | u8 *i2c_data, const u8 len); | ||
133 | |||
134 | int po1030_get_exposure(struct gspca_dev *gspca_dev, __s32 *val); | 131 | int po1030_get_exposure(struct gspca_dev *gspca_dev, __s32 *val); |
135 | int po1030_set_exposure(struct gspca_dev *gspca_dev, __s32 val); | 132 | int po1030_set_exposure(struct gspca_dev *gspca_dev, __s32 val); |
136 | int po1030_get_gain(struct gspca_dev *gspca_dev, __s32 *val); | 133 | int po1030_get_gain(struct gspca_dev *gspca_dev, __s32 *val); |