From 0e34ed234e7b0b443aaa6faff45b42903b7c181b Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Thu, 25 Apr 2019 15:07:34 +0800 Subject: [PATCH] kernel:Troika do not support turbo charger rate Troika do not support turbo charger rate Change-Id: I77671320b8b30c36285d7448d0f2bc21539477c0 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1342646 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/power/supply/s2mu00x_battery.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/s2mu00x_battery.c b/drivers/power/supply/s2mu00x_battery.c index 0498a7f4a155..b9f28bf75d90 100644 --- a/drivers/power/supply/s2mu00x_battery.c +++ b/drivers/power/supply/s2mu00x_battery.c @@ -869,7 +869,7 @@ static void get_prop_charge_rate(struct s2mu00x_battery_info *battery) battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_NONE; return; } - +#if defined(CONFIG_SMALL_CHARGER) if(battery->cable_type == POWER_SUPPLY_TYPE_HV_MAINS || battery->cable_type == POWER_SUPPLY_TYPE_USB_PD || battery->cable_type == POWER_SUPPLY_TYPE_PREPARE_TA || @@ -877,7 +877,9 @@ static void get_prop_charge_rate(struct s2mu00x_battery_info *battery) battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_TURBO; else battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_NORMAL; - +#else + battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_NORMAL; +#endif if(prev_chg_rate != battery->charger_rate) printk(KERN_ERR "%s,charge_rate:%s\n",__func__,charge_rate[battery->charger_rate]); } -- 2.20.1