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/host | |
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/host')
-rw-r--r-- | board/host/board.c | 10 |
1 files changed, 5 insertions, 5 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); |