From dede4e01ae4c877bb05d671087a6e85a29a0f902 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Mon, 3 Aug 2020 13:06:42 -0700 Subject: ec: change usage of dummy Google is working to change its source code to use more inclusive language. To that end, replace the term "dummy" with inclusive alternatives. BUG=b:162781382 BRANCH=None TEST=make -j buildall `grep -ir dummy *` The only results are in "private/nordic_keyboard/sdk8.0.0" which is not our code. Signed-off-by: Sam Hurst Change-Id: I6a42183d998e4db4bb61625f962867fda10722e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335737 Reviewed-by: Tom Hughes --- chip/mchp/i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chip/mchp/i2c.c') diff --git a/chip/mchp/i2c.c b/chip/mchp/i2c.c index ab2c75c754..da7136a6b2 100644 --- a/chip/mchp/i2c.c +++ b/chip/mchp/i2c.c @@ -454,7 +454,7 @@ static int wait_byte_done(int controller, uint8_t mask, uint8_t expected) * Switch port by reset and reconfigure to handle cases where * the slave on current port is driving line(s) low. * NOTE: I2C hardware reset only requires one AHB clock, back to back - * writes is OK but we added a dummy write as insurance. + * writes is OK but we added an extra write as insurance. */ static void select_port(int port, int controller) { @@ -465,7 +465,7 @@ static void select_port(int port, int controller) return; MCHP_I2C_CONFIG(controller) |= BIT(9); - MCHP_EC_ID_RO = 0; /* dummy write to read-only as delay */ + MCHP_EC_ID_RO = 0; /* extra write to read-only as delay */ MCHP_I2C_CONFIG(controller) &= ~BIT(9); configure_controller(controller, port_sel, i2c_ports[port].kbps); } @@ -651,7 +651,7 @@ static int i2c_mrx_start(int ctrl) return rv; } /* if STOP requested and last 1 or 2 bytes prepare controller - * to NACK last byte. Do this before read of dummy data so + * to NACK last byte. Do this before read of extra data so * controller is setup to NACK last byte. */ cdata[ctrl].flags |= (1ul << 8); -- cgit v1.2.1