From 6f21e3f5c1c61caac1535ec433210aac213c1c1c Mon Sep 17 00:00:00 2001 From: Dave Parker Date: Sat, 19 Apr 2014 14:09:42 -0700 Subject: Rename battery_vendor_params() to battery_override_params() Charger V1 only. This is a clearer name for the intent of the function to override the charging parameters requested by the battery. This also disabmiguates this function with a new host command to get and set arbitrary vendor parameters in the battery. BUG=chrome-os-partner:25145 BRANCH=ToT TEST=`make buildall -j`. Change-Id: I1e8762d359c0e91c5b2a539553d22c12c9850c03 Signed-off-by: Dave Parker Reviewed-on: https://chromium-review.googlesource.com/195823 Reviewed-by: Randall Spangler Reviewed-on: https://chromium-review.googlesource.com/197164 Reviewed-by: Yung-chieh Lo Reviewed-by: Bill Richardson --- driver/battery/link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'driver') diff --git a/driver/battery/link.c b/driver/battery/link.c index f870342f9a..37a4ffb150 100644 --- a/driver/battery/link.c +++ b/driver/battery/link.c @@ -39,7 +39,7 @@ const struct battery_info *battery_get_info(void) return &info; } -#ifdef CONFIG_BATTERY_VENDOR_PARAMS +#ifdef CONFIG_BATTERY_OVERRIDE_PARAMS /* * Design capacity @@ -93,7 +93,7 @@ static inline void limit_value(int *val, int limit) * desired_voltage and desired_current will be passed to the charger. To use * the smart battery's profile, simply do nothing. */ -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; @@ -137,4 +137,4 @@ void battery_vendor_params(struct batt_params *batt) *desired_current = info.precharge_current; } -#endif /* CONFIG_BATTERY_VENDOR_PARAMS */ +#endif /* CONFIG_BATTERY_OVERRIDE_PARAMS */ -- cgit v1.2.1