diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-10-24 11:18:47 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-10-25 01:32:15 +0000 |
commit | df541c6ffdc3ecf2802bad1c235e730cd29f8bfb (patch) | |
tree | 5de1078e831ec5e3f3f7437b6e5e8c96b4156a69 /driver/led | |
parent | 4a1ecb67f9ff1745422aecdd5cc70a9f630d7dc8 (diff) | |
download | chrome-ec-df541c6ffdc3ecf2802bad1c235e730cd29f8bfb.tar.gz |
cleanup: rename I2C_PORT_HOST to I2C_PORT_MASTER
Previously, it was really confusing whether I2C_PORT_HOST meant the
port where the EC was the master, or the port used to talk to the AP.
No functional changes, just a global find/replace and some tidying of
unused comments.
BUG=chrome-os-partner:18343
BRANCH=none
TEST=build all platforms; pass unit tests
Change-Id: Ia591ba4577d3399729556e0234ba0db3a0e3c5ea
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/174546
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'driver/led')
-rw-r--r-- | driver/led/lp5562.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/led/lp5562.c b/driver/led/lp5562.c index fd92fae26f..1f5bc8b9d5 100644 --- a/driver/led/lp5562.c +++ b/driver/led/lp5562.c @@ -17,12 +17,12 @@ inline int lp5562_write(uint8_t reg, uint8_t val) { - return i2c_write8(I2C_PORT_HOST, LP5562_I2C_ADDR, reg, val); + return i2c_write8(I2C_PORT_MASTER, LP5562_I2C_ADDR, reg, val); } inline int lp5562_read(uint8_t reg, int *val) { - return i2c_read8(I2C_PORT_HOST, LP5562_I2C_ADDR, reg, val); + return i2c_read8(I2C_PORT_MASTER, LP5562_I2C_ADDR, reg, val); } int lp5562_set_color(uint32_t rgb) |