summaryrefslogtreecommitdiff
path: root/common/dptf.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/dptf.c')
-rw-r--r--common/dptf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/dptf.c b/common/dptf.c
index 33a42ba5af..12864d8367 100644
--- a/common/dptf.c
+++ b/common/dptf.c
@@ -28,6 +28,8 @@ static struct {
int temp; /* degrees K, negative for disabled */
cond_t over; /* watch for crossings */
} dptf_threshold[TEMP_SENSOR_COUNT][DPTF_THRESHOLDS_PER_SENSOR];
+_STATIC_ASSERT(TEMP_SENSOR_COUNT > 0,
+ "CONFIG_PLATFORM_EC_DPTF enabled, but no temp sensors");
static void dptf_init(void)
{