From: xuwei9 Date: Thu, 25 Apr 2019 07:07:34 +0000 (+0800) Subject: kernel:Troika do not support turbo charger rate X-Git-Tag: MMI-QSAS30.62-33-3~148 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cb26c2293e61f19aa1cfbfa9b36d5910d8db1b4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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]); }