summaryrefslogtreecommitdiff
path: root/driver/temp_sensor/g78x.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/temp_sensor/g78x.c')
-rw-r--r--driver/temp_sensor/g78x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/temp_sensor/g78x.c b/driver/temp_sensor/g78x.c
index aef13d3d68..c4fd0ff243 100644
--- a/driver/temp_sensor/g78x.c
+++ b/driver/temp_sensor/g78x.c
@@ -26,8 +26,8 @@ static int temp_val_remote2;
*/
static int has_power(void)
{
-#ifdef CONFIG_TEMP_SENSOR_POWER_GPIO
- return gpio_get_level(CONFIG_TEMP_SENSOR_POWER_GPIO);
+#ifdef CONFIG_TEMP_SENSOR_POWER
+ return gpio_get_level(GPIO_TEMP_SENSOR_POWER);
#else
return 1;
#endif