From dede4e01ae4c877bb05d671087a6e85a29a0f902 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Mon, 3 Aug 2020 13:06:42 -0700 Subject: 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 Change-Id: I6a42183d998e4db4bb61625f962867fda10722e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335737 Reviewed-by: Tom Hughes --- board/host/board.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'board/host/board.c') 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); -- cgit v1.2.1