summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
Diffstat (limited to 'driver')
-rw-r--r--driver/charger/bd99955.c4
-rw-r--r--driver/charger/bd99955.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/driver/charger/bd99955.c b/driver/charger/bd99955.c
index a4eb1c07ca..cac77ab322 100644
--- a/driver/charger/bd99955.c
+++ b/driver/charger/bd99955.c
@@ -813,7 +813,8 @@ int bd99955_select_input_port(enum bd99955_charge_port port)
BD99955_EXTENDED_COMMAND);
}
-int bd99955_get_temp(int *temp_ptr)
+#ifdef CONFIG_CHARGER_BATTERY_TSENSE
+int bd99955_get_battery_temp(int *temp_ptr)
{
int rv;
@@ -826,6 +827,7 @@ int bd99955_get_temp(int *temp_ptr)
*temp_ptr = 200 - *temp_ptr;
return EC_SUCCESS;
}
+#endif
#ifdef HAS_TASK_USB_CHG
int bd99955_bc12_enable_charging(enum bd99955_charge_port port, int enable)
diff --git a/driver/charger/bd99955.h b/driver/charger/bd99955.h
index 214a20fd7b..f9c95d7663 100644
--- a/driver/charger/bd99955.h
+++ b/driver/charger/bd99955.h
@@ -296,6 +296,6 @@ int bd99955_bc12_enable_charging(enum bd99955_charge_port port, int enable);
/* Interrupt handler for USB charger VBUS */
void bd99955_vbus_interrupt(enum gpio_signal signal);
/* Read temperature measurement value (in Celsius) */
-int bd99955_get_temp(int *temp_ptr);
+int bd99955_get_battery_temp(int *temp_ptr);
#endif /* __CROS_EC_BD99955_H */