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/stm32/spi_master.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/stm32/spi_master.c')
-rw-r--r-- | chip/stm32/spi_master.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/spi_master.c b/chip/stm32/spi_master.c index 4b48f8ea80..c2d36bb4d9 100644 --- a/chip/stm32/spi_master.c +++ b/chip/stm32/spi_master.c @@ -117,11 +117,11 @@ static int spi_rx_done(stm32_spi_regs_t *spi) /* Read until RX FIFO is empty (i.e. RX done) */ static int spi_clear_rx_fifo(stm32_spi_regs_t *spi) { - uint8_t dummy __attribute__((unused)); + uint8_t unused __attribute__((unused)); uint32_t start = __hw_clock_source_read(), delta; while (!spi_rx_done(spi)) { - dummy = spi->dr; /* Read one byte from FIFO */ + unused = spi->dr; /* Read one byte from FIFO */ delta = __hw_clock_source_read() - start; if (delta >= SPI_TRANSACTION_TIMEOUT_USEC) return EC_ERROR_TIMEOUT; |