From e44378ea69ee2a938b22822293c62bafa586d414 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Thu, 21 Jan 2021 22:27:36 -0700 Subject: COIL: Rename comments and variables in PS8802 driver Rename i2c related comments and variables in the PS8802 driver. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z Change-Id: Id52177261edc604f610ace0e72b4d42f09a5de0c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649349 Reviewed-by: Daisuke Nojiri --- driver/retimer/ps8802.c | 9 +++++---- driver/retimer/ps8802.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'driver/retimer') diff --git a/driver/retimer/ps8802.c b/driver/retimer/ps8802.c index 6b02846702..7406d8c54e 100644 --- a/driver/retimer/ps8802.c +++ b/driver/retimer/ps8802.c @@ -297,16 +297,17 @@ const struct usb_mux_driver ps8802_usb_mux_driver = { }; /* - * If PS8802 I2c slave address was conflicted, change - * the I2c slave address in page 0x0A, offset 0xB0 - * switch to 0x50 slave address + * If PS8802 I2c address was conflicted, change + * the I2c address in page 0x0A, offset 0xB0 + * switch to 0x50 8-bit address */ int ps8802_chg_i2c_addr(int i2c_port) { int rv; rv = i2c_write8(i2c_port, - PS8802_P1_ADDR, PS8802_ADDR_CFG, PS8802_I2C_SLAV_ADDR); + PS8802_P1_ADDR, PS8802_ADDR_CFG, + PS8802_I2C_ADDR_FLAGS_ALT); return rv; } diff --git a/driver/retimer/ps8802.h b/driver/retimer/ps8802.h index c386ceb7bb..858b83bfc7 100644 --- a/driver/retimer/ps8802.h +++ b/driver/retimer/ps8802.h @@ -96,7 +96,7 @@ #define PS8802_P1_ADDR 0x0A #define PS8802_ADDR_CFG 0xB0 -#define PS8802_I2C_SLAV_ADDR 0x50 +#define PS8802_I2C_ADDR_FLAGS_ALT 0x50 extern const struct usb_mux_driver ps8802_usb_mux_driver; -- cgit v1.2.1