summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2022-10-13 14:00:25 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-18 17:49:13 +0000
commitd0307eb698f45490cea28ab032a8cce445c948ec (patch)
tree997b4c72cd863b778d7ef22655d49b66d223a106
parent88be9ff4c3da020c772ead59d46fb82675a620c2 (diff)
downloadchrome-ec-d0307eb698f45490cea28ab032a8cce445c948ec.tar.gz
board/vell: Fix compilation with clang
BRANCH=none BUG=b:172020503, b:202062363 TEST=./util/compare_build.sh -b all -j 120 => MATCH Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I8131e8a38cea468c1bbe2fbd37d8eba89b6d28b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3953257 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/vell/sensors.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/board/vell/sensors.c b/board/vell/sensors.c
index f088fc8867..4957055a7d 100644
--- a/board/vell/sensors.c
+++ b/board/vell/sensors.c
@@ -217,7 +217,6 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
[EC_TEMP_THRESH_HIGH] = C_TO_K(85), \
}, \
}
-__maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU;
/*
* TODO(b/203839956): update for Alder Lake/vell
@@ -235,8 +234,6 @@ __maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU;
[EC_TEMP_THRESH_HIGH] = C_TO_K(85), \
}, \
}
-__maybe_unused static const struct ec_thermal_config thermal_charger =
- THERMAL_CHARGER;
/*
* TODO(b/203839956): update for vell WWAN module
@@ -254,8 +251,6 @@ __maybe_unused static const struct ec_thermal_config thermal_charger =
[EC_TEMP_THRESH_HIGH] = C_TO_K(65), \
}, \
}
-__maybe_unused static const struct ec_thermal_config thermal_wwan =
- THERMAL_WWAN;
/*
* TODO(b/203839956): update for Alder Lake/vell
@@ -274,7 +269,6 @@ __maybe_unused static const struct ec_thermal_config thermal_wwan =
[EC_TEMP_THRESH_HIGH] = C_TO_K(75), \
}, \
}
-__maybe_unused static const struct ec_thermal_config thermal_ddr = THERMAL_DDR;
/*
* TODO(b/203839956): update for Alder Lake/vell
@@ -293,13 +287,11 @@ __maybe_unused static const struct ec_thermal_config thermal_ddr = THERMAL_DDR;
[EC_TEMP_THRESH_HIGH] = C_TO_K(75), \
}, \
}
-__maybe_unused static const struct ec_thermal_config thermal_regulator =
- THERMAL_REGULATOR;
struct ec_thermal_config thermal_params[] = {
- [TEMP_SENSOR_1_SOC] = thermal_cpu,
- [TEMP_SENSOR_2_CHARGER] = thermal_charger,
- [TEMP_SENSOR_3_WWAN] = thermal_wwan,
- [TEMP_SENSOR_4_DDR] = thermal_ddr,
- [TEMP_SENSOR_5_REGULATOR] = thermal_regulator,
+ [TEMP_SENSOR_1_SOC] = THERMAL_CPU,
+ [TEMP_SENSOR_2_CHARGER] = THERMAL_CHARGER,
+ [TEMP_SENSOR_3_WWAN] = THERMAL_WWAN,
+ [TEMP_SENSOR_4_DDR] = THERMAL_DDR,
+ [TEMP_SENSOR_5_REGULATOR] = THERMAL_REGULATOR,
};