diff options
author | Ricardo Quesada <ricardoq@google.com> | 2022-02-03 09:43:24 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-03 22:44:19 +0000 |
commit | 01aa26eed1521607a0c5ea239eb471032e27d0a4 (patch) | |
tree | 9ef4d8e31cce10dec3aebbde065c102c324d7879 /board/host/battery.c | |
parent | 2a37c4d595b718394b296ed9e650d2eb06b2869e (diff) | |
download | chrome-ec-01aa26eed1521607a0c5ea239eb471032e27d0a4.tar.gz |
COIL: Update I2C terminology
This CL replaces slave_addr_flags with addr_flags.
For context, "addr_flags" is the name is that is being used in the
caller function. E.g:
http://cs/chromeos_public/src/platform/ec/common/i2c_controller.c?l=137
So, the naming convention is the name as the rest of the functions,
and also conforms with COIL.
BRANCH=None
BUG=b:163885307
TEST=compare_build.sh -b all matches
Signed-off-by: Ricardo Quesada <ricardoq@google.com>
Change-Id: I75efe758daa8f51ae37f6ba2c67c3a7bf8ce3a8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3436449
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Ricardo Quesada <ricardoq@chromium.org>
Tested-by: Ricardo Quesada <ricardoq@chromium.org>
Auto-Submit: Ricardo Quesada <ricardoq@chromium.org>
Diffstat (limited to 'board/host/battery.c')
-rw-r--r-- | board/host/battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/host/battery.c b/board/host/battery.c index 1228485ab7..58390133e4 100644 --- a/board/host/battery.c +++ b/board/host/battery.c @@ -14,14 +14,14 @@ static uint16_t mock_smart_battery[SB_MANUFACTURER_DATA + 1]; -int sb_i2c_xfer(int port, uint16_t slave_addr_flags, +int sb_i2c_xfer(int port, uint16_t addr_flags, const uint8_t *out, int out_size, uint8_t *in, int in_size, int flags) { if (out_size == 0) return EC_SUCCESS; - if (port != I2C_PORT_BATTERY || slave_addr_flags != BATTERY_ADDR_FLAGS) + if (port != I2C_PORT_BATTERY || addr_flags != BATTERY_ADDR_FLAGS) return EC_ERROR_INVAL; if (out[0] >= ARRAY_SIZE(mock_smart_battery)) return EC_ERROR_UNIMPLEMENTED; |