diff options
Diffstat (limited to 'driver/temp_sensor/thermistor.c')
-rw-r--r-- | driver/temp_sensor/thermistor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/temp_sensor/thermistor.c b/driver/temp_sensor/thermistor.c index ffa780cb07..bef10416b6 100644 --- a/driver/temp_sensor/thermistor.c +++ b/driver/temp_sensor/thermistor.c @@ -77,14 +77,14 @@ int thermistor_get_temperature(int idx_adc, int *temp_ptr, { int mv; -#ifdef CONFIG_TEMP_SENSOR_POWER_GPIO +#ifdef CONFIG_TEMP_SENSOR_POWER /* * If the power rail for the thermistor circuit is not enabled, then * need to ignore any ADC measurments. */ - if (!gpio_get_level(CONFIG_TEMP_SENSOR_POWER_GPIO)) + if (!gpio_get_level(GPIO_TEMP_SENSOR_POWER)) return EC_ERROR_NOT_POWERED; -#endif /* CONFIG_TEMP_SENSOR_POWER_GPIO */ +#endif /* CONFIG_TEMP_SENSOR_POWER */ mv = adc_read_channel(idx_adc); if (mv < 0) return EC_ERROR_UNKNOWN; |