]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: Update gpio expander code to the corret i2c adapter id
authorEduardo Valentin <eduardo.valentin@indt.org.br>
Tue, 9 Oct 2007 12:52:30 +0000 (08:52 -0400)
committerTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2007 01:44:26 +0000 (17:44 -0800)
- Update gpio expander code to the corret i2c adapter id
- Due to changes on i2c binding style, the i2c adapter is 1
and not 0. (as configured on i2c_register_board_info)

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/gpio_expander_omap.c

index 92e96baf492474bd0536309a4482f35b5b5a2ec1..dfe7f040fac261cf5983015a613541273b62f3a4 100644 (file)
@@ -26,7 +26,7 @@ int write_gpio_expa(u8 val, int addr)
        struct i2c_msg msg[1];
        unsigned char data[1];
 
-       adap = i2c_get_adapter(0);
+       adap = i2c_get_adapter(1);
        if (!adap)
                return -ENODEV;
        msg->addr = addr;       /* I2C address of GPIO EXPA */
@@ -51,7 +51,7 @@ int read_gpio_expa(u8 * val, int addr)
        struct i2c_msg msg[1];
        unsigned char data[1];
 
-       adap = i2c_get_adapter(0);
+       adap = i2c_get_adapter(1);
        if (!adap)
                return -ENODEV;
        msg->addr = addr;       /* I2C address of GPIO EXPA */