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 /board | |
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 'board')
-rw-r--r-- | board/host/board.c | 10 | ||||
-rw-r--r-- | board/kukui/board.c | 2 | ||||
-rw-r--r-- | board/nucleo-f072rb/board.c | 2 | ||||
-rw-r--r-- | board/reef_mchp/board.c | 2 | ||||
-rw-r--r-- | board/stm32l476g-eval/board.c | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/board/host/board.c b/board/host/board.c index 2ee7413152..307ccac991 100644 --- a/board/host/board.c +++ b/board/host/board.c @@ -34,17 +34,17 @@ test_mockable enum battery_present battery_is_present(void) return BP_YES; } -test_mockable_static int dummy_temp_get_val(int idx, int *temp_ptr) +test_mockable_static int mock_temp_get_val(int idx, int *temp_ptr) { *temp_ptr = 0; return EC_SUCCESS; } const struct temp_sensor_t temp_sensors[] = { - {"CPU", TEMP_SENSOR_TYPE_CPU, dummy_temp_get_val, 0}, - {"Board", TEMP_SENSOR_TYPE_BOARD, dummy_temp_get_val, 1}, - {"Case", TEMP_SENSOR_TYPE_CASE, dummy_temp_get_val, 2}, - {"Battery", TEMP_SENSOR_TYPE_BOARD, dummy_temp_get_val, 3}, + {"CPU", TEMP_SENSOR_TYPE_CPU, mock_temp_get_val, 0}, + {"Board", TEMP_SENSOR_TYPE_BOARD, mock_temp_get_val, 1}, + {"Case", TEMP_SENSOR_TYPE_CASE, mock_temp_get_val, 2}, + {"Battery", TEMP_SENSOR_TYPE_BOARD, mock_temp_get_val, 3}, }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); diff --git a/board/kukui/board.c b/board/kukui/board.c index 68edc00d3a..0f6107ceaa 100644 --- a/board/kukui/board.c +++ b/board/kukui/board.c @@ -263,7 +263,7 @@ int pd_snk_is_vbus_provided(int port) } #if defined(BOARD_KUKUI) || defined(BOARD_KODAMA) -/* dummy interrupt function for kukui */ +/* fake interrupt function for kukui */ void pogo_adc_interrupt(enum gpio_signal signal) { } diff --git a/board/nucleo-f072rb/board.c b/board/nucleo-f072rb/board.c index 48a51c7b02..66e8960ce7 100644 --- a/board/nucleo-f072rb/board.c +++ b/board/nucleo-f072rb/board.c @@ -18,7 +18,7 @@ void button_event(enum gpio_signal signal) #ifdef CTS_MODULE /* - * Dummy interrupt handler. It's supposed to be overwritten by each suite + * Mock interrupt handler. It's supposed to be overwritten by each suite * if needed. */ __attribute__((weak)) void cts_irq1(enum gpio_signal signal) {} diff --git a/board/reef_mchp/board.c b/board/reef_mchp/board.c index 04d1438799..621f6c484b 100644 --- a/board/reef_mchp/board.c +++ b/board/reef_mchp/board.c @@ -394,7 +394,7 @@ const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); * Upon receiving DRP low power idle command, PS8751 holds SCL and * SDA low for ~480us. It simultaneously releases both pins which is * defined as a bus error condition by I2C spec. No ACK received. - * TCPCI spec. states waking any TCPM requires sending any dummy + * TCPCI spec. states waking any TCPM requires sending any fake * I2C command which the TCPM will NACK. The I2C master MUST wait * a minimum of 5 ms after the NACK before sending another I2C * command. We observe the PD task and TCPCI state machines do not diff --git a/board/stm32l476g-eval/board.c b/board/stm32l476g-eval/board.c index 2ef46e8bc1..c7ebc2c6b8 100644 --- a/board/stm32l476g-eval/board.c +++ b/board/stm32l476g-eval/board.c @@ -11,7 +11,7 @@ #ifdef CTS_MODULE /* - * Dummy interrupt handler. It's supposed to be overwritten by each suite + * Mock interrupt handler. It's supposed to be overwritten by each suite * if needed. */ __attribute__((weak)) void cts_irq(enum gpio_signal signal) |