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 /cts/i2c | |
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 'cts/i2c')
-rw-r--r-- | cts/i2c/dut.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cts/i2c/dut.c b/cts/i2c/dut.c index 033aca7ffc..c7a3f9fccf 100644 --- a/cts/i2c/dut.c +++ b/cts/i2c/dut.c @@ -13,11 +13,11 @@ #include "uart.h" #include "watchdog.h" -#define TH_ADDR__7bf 0x1e +#define TH_ADDR_FLAGS 0x1e enum cts_rc write8_test(void) { - if (i2c_write8__7bf(i2c_ports[0].port, TH_ADDR__7bf, + if (i2c_write8(i2c_ports[0].port, TH_ADDR_FLAGS, WRITE8_OFF, WRITE8_DATA)) return CTS_RC_FAILURE; return CTS_RC_SUCCESS; @@ -25,7 +25,7 @@ enum cts_rc write8_test(void) enum cts_rc write16_test(void) { - if (i2c_write16__7bf(i2c_ports[0].port, TH_ADDR__7bf, + if (i2c_write16(i2c_ports[0].port, TH_ADDR_FLAGS, WRITE16_OFF, WRITE16_DATA)) return CTS_RC_FAILURE; return CTS_RC_SUCCESS; @@ -33,7 +33,7 @@ enum cts_rc write16_test(void) enum cts_rc write32_test(void) { - if (i2c_write32__7bf(i2c_ports[0].port, TH_ADDR__7bf, + if (i2c_write32(i2c_ports[0].port, TH_ADDR_FLAGS, WRITE32_OFF, WRITE32_DATA)) return CTS_RC_FAILURE; return CTS_RC_SUCCESS; @@ -43,7 +43,7 @@ enum cts_rc read8_test(void) { int data; - if (i2c_read8__7bf(i2c_ports[0].port, TH_ADDR__7bf, + if (i2c_read8(i2c_ports[0].port, TH_ADDR_FLAGS, READ8_OFF, &data)) return CTS_RC_FAILURE; if (data != READ8_DATA) { @@ -58,7 +58,7 @@ enum cts_rc read16_test(void) { int data; - if (i2c_read16__7bf(i2c_ports[0].port, TH_ADDR__7bf, + if (i2c_read16(i2c_ports[0].port, TH_ADDR_FLAGS, READ16_OFF, &data)) return CTS_RC_FAILURE; if (data != READ16_DATA) { @@ -73,7 +73,7 @@ enum cts_rc read32_test(void) { int data; - if (i2c_read32__7bf(i2c_ports[0].port, TH_ADDR__7bf, + if (i2c_read32(i2c_ports[0].port, TH_ADDR_FLAGS, READ32_OFF, &data)) return CTS_RC_FAILURE; if (data != READ32_DATA) { |