diff options
author | Diana Z <dzigterman@chromium.org> | 2021-01-21 22:27:36 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-26 21:23:27 +0000 |
commit | e44378ea69ee2a938b22822293c62bafa586d414 (patch) | |
tree | de551c5b2dcb9c75e2a0019408995bfa2f69ff7d /driver | |
parent | c0af6ecf035e32b8c330406d4442024e4fe32343 (diff) | |
download | chrome-ec-e44378ea69ee2a938b22822293c62bafa586d414.tar.gz |
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 <dzigterman@chromium.org>
Change-Id: Id52177261edc604f610ace0e72b4d42f09a5de0c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649349
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/retimer/ps8802.c | 9 | ||||
-rw-r--r-- | driver/retimer/ps8802.h | 2 |
2 files changed, 6 insertions, 5 deletions
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; |