[PATCH 3/6] OMAP: Update gpio expander code to the corret i2c adapter id

Eduardo Valentin
2007-10-09T12:52:30Z

- 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>
---
drivers/i2c/chips/gpio_expander_omap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/chips/gpio_expander_omap.c b/drivers/i2c/chips/gpio_expander_omap.c
index 92e96ba..dfe7f04 100644
--- a/drivers/i2c/chips/gpio_expander_omap.c
+++ b/drivers/i2c/chips/gpio_expander_omap.c
@@ -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 */
--
1.5.3.4.206.g58ba4