Commit 7a184b46 authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Tony Lindgren

OMAP: Update gpio expander code to the corret i2c adapter id

- 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: default avatarEduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent bad94675
...@@ -26,7 +26,7 @@ int write_gpio_expa(u8 val, int addr) ...@@ -26,7 +26,7 @@ int write_gpio_expa(u8 val, int addr)
struct i2c_msg msg[1]; struct i2c_msg msg[1];
unsigned char data[1]; unsigned char data[1];
adap = i2c_get_adapter(0); adap = i2c_get_adapter(1);
if (!adap) if (!adap)
return -ENODEV; return -ENODEV;
msg->addr = addr; /* I2C address of GPIO EXPA */ msg->addr = addr; /* I2C address of GPIO EXPA */
...@@ -51,7 +51,7 @@ int read_gpio_expa(u8 * val, int addr) ...@@ -51,7 +51,7 @@ int read_gpio_expa(u8 * val, int addr)
struct i2c_msg msg[1]; struct i2c_msg msg[1];
unsigned char data[1]; unsigned char data[1];
adap = i2c_get_adapter(0); adap = i2c_get_adapter(1);
if (!adap) if (!adap)
return -ENODEV; return -ENODEV;
msg->addr = addr; /* I2C address of GPIO EXPA */ msg->addr = addr; /* I2C address of GPIO EXPA */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment