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 /include/test_util.h | |
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 'include/test_util.h')
-rw-r--r-- | include/test_util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/test_util.h b/include/test_util.h index a812817b8f..7ee2fed284 100644 --- a/include/test_util.h +++ b/include/test_util.h @@ -218,20 +218,20 @@ void test_reboot_to_next_step(enum test_state_t step); struct test_i2c_read_string_dev { /* I2C string read handler */ - int (*routine__7bf)(const int port, const uint16_t i2c_addr__7bf, + int (*routine)(const int port, const uint16_t i2c_addr_flags, int offset, uint8_t *data, int len); }; struct test_i2c_xfer { /* I2C xfer handler */ - int (*routine__7bf)(const int port, const uint16_t i2c_addr__7bf, + int (*routine)(const int port, const uint16_t i2c_addr_flags, const uint8_t *out, int out_size, uint8_t *in, int in_size, int flags); }; struct test_i2c_write_dev { /* I2C write handler */ - int (*routine__7bf)(const int port, const uint16_t i2c_addr__7bf, + int (*routine)(const int port, const uint16_t i2c_addr_flags, int offset, int data); }; @@ -259,7 +259,7 @@ struct test_i2c_write_dev { * @return EC_SUCCESS if detached; EC_ERROR_OVERFLOW if too many devices are * detached. */ -int test_detach_i2c__7bf(const int port, const uint16_t slave_addr__7bf); +int test_detach_i2c(const int port, const uint16_t slave_addr_flags); /* * Re-attach an I2C device. @@ -269,6 +269,6 @@ int test_detach_i2c__7bf(const int port, const uint16_t slave_addr__7bf); * @return EC_SUCCESS if re-attached; EC_ERROR_INVAL if the specified device * is not a detached device. */ -int test_attach_i2c__7bf(const int port, const uint16_t slave_addr__7bf); +int test_attach_i2c(const int port, const uint16_t slave_addr_flags); #endif /* __CROS_EC_TEST_UTIL_H */ |