summaryrefslogtreecommitdiff
path: root/board/nyan/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/nyan/battery.c')
-rw-r--r--board/nyan/battery.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/nyan/battery.c b/board/nyan/battery.c
index 6bd445fdf4..2ff7633cbc 100644
--- a/board/nyan/battery.c
+++ b/board/nyan/battery.c
@@ -98,7 +98,7 @@ static struct battery_device support_batteries[] = {
}
};
-#ifdef CONFIG_BATTERY_VENDOR_PARAMS
+#ifdef CONFIG_BATTERY_OVERRIDE_PARAMS
/*
* The following parameters are for 2S battery.
* There is no corresponding params for 3S battery.
@@ -142,7 +142,7 @@ static inline void limit_value(int *val, int limit)
*val = limit;
}
-void battery_vendor_params(struct batt_params *batt)
+void battery_override_params(struct batt_params *batt)
{
int *desired_current = &batt->desired_current;
int temp_range, volt_range;
@@ -193,7 +193,7 @@ void battery_vendor_params(struct batt_params *batt)
*desired_current < battery_info->precharge_current)
*desired_current = battery_info->precharge_current;
}
-#endif /* CONFIG_BATTERY_VENDOR_PARAMS */
+#endif /* CONFIG_BATTERY_OVERRIDE_PARAMS */
const struct battery_info *battery_get_info(void)
{