diff options
Diffstat (limited to 'driver/ioexpander/it8801.c')
-rw-r--r-- | driver/ioexpander/it8801.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/ioexpander/it8801.c b/driver/ioexpander/it8801.c index d59bee8e3f..ebe1809f18 100644 --- a/driver/ioexpander/it8801.c +++ b/driver/ioexpander/it8801.c @@ -200,7 +200,7 @@ static int it8801_ioex_read(int ioex, int reg, int *data) { struct ioexpander_config_t *ioex_p = &ioex_config[ioex]; - return i2c_read8(ioex_p->i2c_host_port, ioex_p->i2c_slave_addr, + return i2c_read8(ioex_p->i2c_host_port, ioex_p->i2c_addr_flags, reg, data); } @@ -208,7 +208,7 @@ static int it8801_ioex_write(int ioex, int reg, int data) { struct ioexpander_config_t *ioex_p = &ioex_config[ioex]; - return i2c_write8(ioex_p->i2c_host_port, ioex_p->i2c_slave_addr, + return i2c_write8(ioex_p->i2c_host_port, ioex_p->i2c_addr_flags, reg, data); } |