diff options
author | Sam Hurst <shurst@google.com> | 2020-08-03 13:06:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-05 18:41:25 +0000 |
commit | dede4e01ae4c877bb05d671087a6e85a29a0f902 (patch) | |
tree | 8aaaba7b7ce04c059ecd4df4de8a5609492065db /chip/mchp/gpspi.c | |
parent | e891cd5ebbb08c9101f1802c2dfcec755718d23f (diff) | |
download | chrome-ec-dede4e01ae4c877bb05d671087a6e85a29a0f902.tar.gz |
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 <shurst@google.com>
Change-Id: I6a42183d998e4db4bb61625f962867fda10722e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335737
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'chip/mchp/gpspi.c')
-rw-r--r-- | chip/mchp/gpspi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chip/mchp/gpspi.c b/chip/mchp/gpspi.c index f8b556d389..4edf57ee11 100644 --- a/chip/mchp/gpspi.c +++ b/chip/mchp/gpspi.c @@ -56,14 +56,14 @@ static int gpspi_wait_byte(const int ctrl) /* NOTE: auto-read must be disabled before calling this routine! */ static void gpspi_rx_fifo_clean(const int ctrl) { - uint8_t dummy = 0; + uint8_t unused = 0; /* If ACTIVE and/or RXFF then clean it */ if ((MCHP_SPI_SR(ctrl) & 0x4) == 0x4) - dummy += MCHP_SPI_RD(ctrl); + unused += MCHP_SPI_RD(ctrl); if ((MCHP_SPI_SR(ctrl) & 0x2) == 0x2) - dummy += MCHP_SPI_RD(ctrl); + unused += MCHP_SPI_RD(ctrl); } /* * NOTE: auto-read must be disabled before calling this routine! @@ -73,7 +73,7 @@ static int gpspi_tx(const int ctrl, const uint8_t *txdata, int txlen) { int i; int ret; - uint8_t dummy = 0; + uint8_t unused = 0; gpspi_rx_fifo_clean(ctrl); @@ -83,7 +83,7 @@ static int gpspi_tx(const int ctrl, const uint8_t *txdata, int txlen) ret = gpspi_wait_byte(ctrl); if (ret != EC_SUCCESS) break; - dummy += MCHP_SPI_RD(ctrl); + unused += MCHP_SPI_RD(ctrl); } return ret; |