summaryrefslogtreecommitdiff
path: root/chip/mec1322/spi.c
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2020-08-03 13:06:42 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-05 18:41:25 +0000
commitdede4e01ae4c877bb05d671087a6e85a29a0f902 (patch)
tree8aaaba7b7ce04c059ecd4df4de8a5609492065db /chip/mec1322/spi.c
parente891cd5ebbb08c9101f1802c2dfcec755718d23f (diff)
downloadchrome-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/mec1322/spi.c')
-rw-r--r--chip/mec1322/spi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/mec1322/spi.c b/chip/mec1322/spi.c
index 834fbd10b1..ba58bfb0bd 100644
--- a/chip/mec1322/spi.c
+++ b/chip/mec1322/spi.c
@@ -60,14 +60,14 @@ static int spi_tx(const int port, const uint8_t *txdata, int txlen)
{
int i;
int ret = EC_SUCCESS;
- uint8_t dummy __attribute__((unused)) = 0;
+ uint8_t unused __attribute__((unused)) = 0;
for (i = 0; i < txlen; ++i) {
MEC1322_SPI_TD(port) = txdata[i];
ret = wait_byte(port);
if (ret != EC_SUCCESS)
return ret;
- dummy = MEC1322_SPI_RD(port);
+ unused = MEC1322_SPI_RD(port);
}
return ret;
@@ -103,7 +103,7 @@ int spi_transaction_flush(const struct spi_device_t *spi_device)
{
int port = spi_device->port;
int ret = dma_wait(SPI_DMA_CHANNEL(port));
- uint8_t dummy __attribute__((unused)) = 0;
+ uint8_t unused __attribute__((unused)) = 0;
timestamp_t deadline;
@@ -121,7 +121,7 @@ int spi_transaction_flush(const struct spi_device_t *spi_device)
dma_disable(SPI_DMA_CHANNEL(port));
dma_clear_isr(SPI_DMA_CHANNEL(port));
if (MEC1322_SPI_SR(port) & 0x2)
- dummy = MEC1322_SPI_RD(port);
+ unused = MEC1322_SPI_RD(port);
gpio_set_level(spi_device->gpio_cs, 1);