- 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>
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 */
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 */