summaryrefslogtreecommitdiff
path: root/driver/temp_sensor/g753.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/temp_sensor/g753.c')
-rw-r--r--driver/temp_sensor/g753.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/temp_sensor/g753.c b/driver/temp_sensor/g753.c
index 857263c161..e3946e4f43 100644
--- a/driver/temp_sensor/g753.c
+++ b/driver/temp_sensor/g753.c
@@ -22,8 +22,8 @@ static int temp_val_local;
*/
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