diff options
Diffstat (limited to 'driver/bc12/pi3usb9281.c')
-rw-r--r-- | driver/bc12/pi3usb9281.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/bc12/pi3usb9281.c b/driver/bc12/pi3usb9281.c index 8d88d5a1e8..b0610f693b 100644 --- a/driver/bc12/pi3usb9281.c +++ b/driver/bc12/pi3usb9281.c @@ -24,7 +24,7 @@ #define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args) /* I2C address */ -#define PI3USB9281_I2C_ADDR__7bf (0x25) +#define PI3USB9281_I2C_ADDR_FLAGS 0x25 /* Delay values */ #define PI3USB9281_SW_RESET_DELAY 20 @@ -69,7 +69,7 @@ static uint8_t pi3usb9281_do_read(int port, uint8_t reg, int with_lock) if (with_lock) select_chip(port); - res = i2c_read8__7bf(chip->i2c_port, PI3USB9281_I2C_ADDR__7bf, + res = i2c_read8(chip->i2c_port, PI3USB9281_I2C_ADDR_FLAGS, reg, &val); if (with_lock) @@ -100,7 +100,7 @@ static int pi3usb9281_do_write( if (with_lock) select_chip(port); - res = i2c_write8__7bf(chip->i2c_port, PI3USB9281_I2C_ADDR__7bf, + res = i2c_write8(chip->i2c_port, PI3USB9281_I2C_ADDR_FLAGS, reg, val); if (with_lock) |