diff options
author | Denis Brockus <dbrockus@chromium.org> | 2019-07-16 15:10:11 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-20 23:09:18 +0000 |
commit | 473bd883b60fd5b00377766dae2bacad246de0d2 (patch) | |
tree | 992d9f03104277934c22c869eceb634e2cf5f7ec /driver/wpc | |
parent | 053491b560d2c4e374bb739373d8ae25c41f6315 (diff) | |
download | chrome-ec-473bd883b60fd5b00377766dae2bacad246de0d2.tar.gz |
Remove __7b, __8b and __7bf
The extentions were added to make the compiler perform most
of the verification that the conversion was being done correctly
to remove 8bit addressing as the standard I2C/SPI address type.
Now that the compiler has verified the code, the extra
extentions are being removed
BUG=chromium:971296
BRANCH=none
TEST=make buildall -j
TEST=verify sensor functionality on arcada_ish
Change-Id: I36894f8bb9daefb5b31b5e91577708f6f9af2a4f
Signed-off-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1704792
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'driver/wpc')
-rw-r--r-- | driver/wpc/p9221.c | 12 | ||||
-rw-r--r-- | driver/wpc/p9221.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/driver/wpc/p9221.c b/driver/wpc/p9221.c index 948734aba1..0225039c4d 100644 --- a/driver/wpc/p9221.c +++ b/driver/wpc/p9221.c @@ -98,37 +98,37 @@ static int p9221_reg_is_8_bit(uint16_t reg) static int p9221_read8(uint16_t reg, int *val) { - return i2c_read_offset16__7bf(wpc->i2c_port, P9221_R7_ADDR__7bf, + return i2c_read_offset16(wpc->i2c_port, P9221_R7_ADDR_FLAGS, reg, val, 1); } static int p9221_write8(uint16_t reg, int val) { - return i2c_write_offset16__7bf(wpc->i2c_port, P9221_R7_ADDR__7bf, + return i2c_write_offset16(wpc->i2c_port, P9221_R7_ADDR_FLAGS, reg, val, 1); } static int p9221_read16(uint16_t reg, int *val) { - return i2c_read_offset16__7bf(wpc->i2c_port, P9221_R7_ADDR__7bf, + return i2c_read_offset16(wpc->i2c_port, P9221_R7_ADDR_FLAGS, reg, val, 2); } static int p9221_write16(uint16_t reg, int val) { - return i2c_write_offset16__7bf(wpc->i2c_port, P9221_R7_ADDR__7bf, + return i2c_write_offset16(wpc->i2c_port, P9221_R7_ADDR_FLAGS, reg, val, 2); } static int p9221_block_read(uint16_t reg, uint8_t *data, int len) { - return i2c_read_offset16_block__7bf(wpc->i2c_port, P9221_R7_ADDR__7bf, + return i2c_read_offset16_block(wpc->i2c_port, P9221_R7_ADDR_FLAGS, reg, data, len); } static int p9221_block_write(uint16_t reg, uint8_t *data, int len) { - return i2c_write_offset16_block__7bf(wpc->i2c_port, P9221_R7_ADDR__7bf, + return i2c_write_offset16_block(wpc->i2c_port, P9221_R7_ADDR_FLAGS, reg, data, len); } diff --git a/driver/wpc/p9221.h b/driver/wpc/p9221.h index b590a5c1c7..0bb0571b38 100644 --- a/driver/wpc/p9221.h +++ b/driver/wpc/p9221.h @@ -19,7 +19,7 @@ /* ========== Variant-specific configuration ============ */ -#define P9221_R7_ADDR__7bf 0x61 +#define P9221_R7_ADDR_FLAGS 0x61 /* * P9221 common registers |