Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=39f46adef8e83653b4716369683c134e1413ad30
Commit:     39f46adef8e83653b4716369683c134e1413ad30
Parent:     7fb0dfc853735ccf4e580b0d71510bad96d37c4f
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Sun Sep 9 06:17:44 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:14:35 2007 -0300

    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 <[EMAIL PROTECTED]>
    Acked-by: Thierry Merle <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 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 025be55..c66aef6 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,
                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)
@@ -192,7 +190,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;
 }
 
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to