summaryrefslogtreecommitdiff
path: root/chip/lm4/i2c.c
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-01-05 17:19:18 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-07 19:21:56 +0000
commit4ecdbc3b1e4ddd94bd488f148c87db87720de61c (patch)
tree1482fdc98756e7dc6a6e4c56dd532884ea091178 /chip/lm4/i2c.c
parentd619e3e95b67728f1c6faff6eb39ac9101ca2328 (diff)
downloadchrome-ec-4ecdbc3b1e4ddd94bd488f148c87db87720de61c.tar.gz
coil: i2c slave_addr -> periph_addr
BUG=b:175244613 TEST=make buildall -j Change-Id: Ifb547770fd829e27437079bee809d07fff90a77a Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2611760 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'chip/lm4/i2c.c')
-rw-r--r--chip/lm4/i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/lm4/i2c.c b/chip/lm4/i2c.c
index 7cd06c430f..2392182415 100644
--- a/chip/lm4/i2c.c
+++ b/chip/lm4/i2c.c
@@ -165,7 +165,7 @@ int i2c_do_work(int port)
return 0;
}
-int chip_i2c_xfer(const int port, const uint16_t slave_addr_flags,
+int chip_i2c_xfer(const int port, const uint16_t periph_addr_flags,
const uint8_t *out, int out_size,
uint8_t *in, int in_size, int flags)
{
@@ -193,7 +193,7 @@ int chip_i2c_xfer(const int port, const uint16_t slave_addr_flags,
CPRINTS("I2C%d Addr:%02X bad status 0x%02x, SCL=%d, SDA=%d",
port,
- I2C_GET_ADDR(slave_addr_flags),
+ I2C_GET_ADDR(periph_addr_flags),
reg_mcs,
i2c_get_line_levels(port) & I2C_LINE_SCL_HIGH,
i2c_get_line_levels(port) & I2C_LINE_SDA_HIGH);
@@ -219,7 +219,7 @@ int chip_i2c_xfer(const int port, const uint16_t slave_addr_flags,
}
/* Set slave address for transmit */
- LM4_I2C_MSA(port) = (I2C_GET_ADDR(slave_addr_flags) << 1) & 0xff;
+ LM4_I2C_MSA(port) = (I2C_GET_ADDR(periph_addr_flags) << 1) & 0xff;
/* Enable interrupts */
pd->task_waiting = task_get_current();