From 7a184b463ac713f09c38e5628d7b5cf11ac95266 Mon Sep 17 00:00:00 2001 From: Eduardo Valentin Date: Tue, 9 Oct 2007 08:52:30 -0400 Subject: [PATCH] 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: Eduardo Valentin Signed-off-by: Tony Lindgren --- drivers/i2c/chips/gpio_expander_omap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/chips/gpio_expander_omap.c b/drivers/i2c/chips/gpio_expander_omap.c index 92e96baf492..dfe7f040fac 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 */ -- 2.41.1