summaryrefslogtreecommitdiff
path: root/driver/charger/rt9490.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/charger/rt9490.c')
-rw-r--r--driver/charger/rt9490.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/charger/rt9490.c b/driver/charger/rt9490.c
index 016ef12d44..e37c65dc1c 100644
--- a/driver/charger/rt9490.c
+++ b/driver/charger/rt9490.c
@@ -635,6 +635,7 @@ const struct charger_drv rt9490_drv = {
#endif
};
+#ifdef CONFIG_USB_CHARGER
/* BC1.2 */
static int rt9490_get_bc12_ilim(enum charge_supplier supplier)
{
@@ -790,6 +791,7 @@ struct bc12_config bc12_ports[CHARGE_PORT_COUNT] = {
},
};
#endif /* CONFIG_BC12_SINGLE_DRIVER */
+#endif /* CONFIG_USB_CHARGER */
int rt9490_get_thermistor_val(const struct temp_sensor_t *sensor, int *temp_ptr)
{