summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/usbvision/usbvision-i2c.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-09 11:17:44 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-09-09 11:17:44 +0200
commita7e9aa7355769ffc29c04c00644a7a8462ff9fa5 (patch)
tree60b6e86fbdd65e8538d5af5fde36e703ad021aca /linux/drivers/media/video/usbvision/usbvision-i2c.c
parent501a54f0edea703168f8fb7d5e27e915087906e6 (diff)
downloadmediapointer-dvb-s2-a7e9aa7355769ffc29c04c00644a7a8462ff9fa5.tar.gz
mediapointer-dvb-s2-a7e9aa7355769ffc29c04c00644a7a8462ff9fa5.tar.bz2
usbvision: Don't support I2C_M_REV_DIR_ADDR
From: Jean Delvare <khali@linux-fr.org> 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 'linux/drivers/media/video/usbvision/usbvision-i2c.c')
-rw-r--r--linux/drivers/media/video/usbvision/usbvision-i2c.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-i2c.c b/linux/drivers/media/video/usbvision/usbvision-i2c.c
index e91add952..048f777c0 100644
--- a/linux/drivers/media/video/usbvision/usbvision-i2c.c
+++ b/linux/drivers/media/video/usbvision/usbvision-i2c.c
@@ -137,8 +137,6 @@ static inline int usb_find_address(struct i2c_adapter *i2c_adap,
addr = (msg->addr << 1);
if (flags & I2C_M_RD)
addr |= 1;
- if (flags & I2C_M_REV_DIR_ADDR)
- addr ^= 1;
add[0] = addr;
if (flags & I2C_M_RD)
@@ -195,7 +193,7 @@ static int algo_control(struct i2c_adapter *adapter, unsigned int cmd, unsigned
static u32 functionality(struct i2c_adapter *adap)
{
- return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR | I2C_FUNC_PROTOCOL_MANGLING;
+ return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR;
}
#ifndef I2C_PEC