diff options
Diffstat (limited to 'src/drivers/maxim')
-rw-r--r-- | src/drivers/maxim/max77686/max77686.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/maxim/max77686/max77686.c b/src/drivers/maxim/max77686/max77686.c index adc1627430..e971dc504d 100644 --- a/src/drivers/maxim/max77686/max77686.c +++ b/src/drivers/maxim/max77686/max77686.c @@ -93,7 +93,7 @@ struct max77686_para max77686_param[] = {/*{vol_addr, vol_bitpos, static inline int max77686_i2c_write(unsigned int bus, unsigned char chip_addr, unsigned int reg, unsigned char val) { - return i2c_write(bus, chip_addr, reg, 1, &val, 1); + return i2c_writeb(bus, chip_addr, reg, val); } /* @@ -107,7 +107,7 @@ static inline int max77686_i2c_write(unsigned int bus, unsigned char chip_addr, static inline int max77686_i2c_read(unsigned int bus, unsigned char chip_addr, unsigned int reg, unsigned char *val) { - return i2c_read(bus, chip_addr, reg, 1, val, 1); + return i2c_readb(bus, chip_addr, reg, (uint8_t *)val); } /* |