diff options
Diffstat (limited to 'common/thermal.c')
-rw-r--r-- | common/thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/thermal.c b/common/thermal.c index dba7334b74..50bf3e27f1 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -54,7 +54,7 @@ BUILD_ASSERT(EC_TEMP_THRESH_COUNT == 3); static cond_t cond_hot[EC_TEMP_THRESH_COUNT]; /* thermal sensor read delay */ -#if defined(CONFIG_TEMP_SENSOR_POWER_GPIO) && \ +#if defined(CONFIG_TEMP_SENSOR_POWER) && \ defined(CONFIG_TEMP_SENSOR_FIRST_READ_DELAY_MS) static int first_read_delay = CONFIG_TEMP_SENSOR_FIRST_READ_DELAY_MS; #endif @@ -77,7 +77,7 @@ static void thermal_control(void) #endif /* add delay to ensure thermal sensor is ready when EC boot */ -#if defined(CONFIG_TEMP_SENSOR_POWER_GPIO) && \ +#if defined(CONFIG_TEMP_SENSOR_POWER) && \ defined(CONFIG_TEMP_SENSOR_FIRST_READ_DELAY_MS) if (first_read_delay != 0) { msleep(first_read_delay); |