From: xuwei9 Date: Thu, 25 Apr 2019 07:07:34 +0000 (+0800) Subject: kernel:Troika do not support turbo charger rate X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e34ed234e7b0b443aaa6faff45b42903b7c181b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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]); }