diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-09-09 05:17:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:14:35 -0400 |
commit | 39f46adef8e83653b4716369683c134e1413ad30 (patch) | |
tree | a48de131c9ed1da49c560549ea8d04ab998f3d9e /drivers/media/video/usbvision | |
parent | 7fb0dfc853735ccf4e580b0d71510bad96d37c4f (diff) |
V4L/DVB (6214): usbvision: Don't support I2C_M_REV_DIR_ADDR
I2C adapters should only support I2C_M_REV_DIR_ADDR if they really have
to (i.e. if they are connected to a broken I2C device which needs this
deviation from the standard I2C protocol.) As no media chip driver
uses I2C_M_REV_DIR_ADDR, I don't think that the usbvision driver needs
to support it.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Thierry Merle <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-i2c.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/usbvision/usbvision-i2c.c b/drivers/media/video/usbvision/usbvision-i2c.c index 025be555194f..c66aef63916f 100644 --- a/drivers/media/video/usbvision/usbvision-i2c.c +++ b/drivers/media/video/usbvision/usbvision-i2c.c | |||
@@ -134,8 +134,6 @@ static inline int usb_find_address(struct i2c_adapter *i2c_adap, | |||
134 | addr = (msg->addr << 1); | 134 | addr = (msg->addr << 1); |
135 | if (flags & I2C_M_RD) | 135 | if (flags & I2C_M_RD) |
136 | addr |= 1; | 136 | addr |= 1; |
137 | if (flags & I2C_M_REV_DIR_ADDR) | ||
138 | addr ^= 1; | ||
139 | 137 | ||
140 | add[0] = addr; | 138 | add[0] = addr; |
141 | if (flags & I2C_M_RD) | 139 | if (flags & I2C_M_RD) |
@@ -192,7 +190,7 @@ static int algo_control(struct i2c_adapter *adapter, unsigned int cmd, unsigned | |||
192 | 190 | ||
193 | static u32 functionality(struct i2c_adapter *adap) | 191 | static u32 functionality(struct i2c_adapter *adap) |
194 | { | 192 | { |
195 | return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR | I2C_FUNC_PROTOCOL_MANGLING; | 193 | return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR; |
196 | } | 194 | } |
197 | 195 | ||
198 | 196 | ||