driver:Add C type Rp current setting
authorxuwei9 <xuwei9@lenovo.com>
Thu, 7 Mar 2019 13:08:54 +0000 (22:08 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:24:46 +0000 (11:24 +0800)
Add c type Rp current
setting

Signed-off-by: xuwei9 <xuwei9@mt.com>
Change-Id: I222c07f0fdd29f65c6a5311Defenderc33e3c5c30c4cf
Reviewed-on: https://gerrit.mot.com/1320518
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@mt.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/power/supply/s2mu00x_battery.c

index 00e6e5ac65195bb7cf82fdff4ee857f24c57662a..304767a78cd6fe0d6b361ad4d9a053b499480cd4 100644 (file)
@@ -4183,6 +4183,7 @@ static int s2mu00x_battery_probe(struct platform_device *pdev)
        battery->pdo_max_chg_power = battery->pdata->pdo_max_chg_power;
        battery->pd_input_current= 2000;
        battery->pd_attach = false;
+       battery->rp_attach = false;
 #endif
        battery->temp_high = battery->pdata->temp_high;
        battery->temp_high_recovery = battery->pdata->temp_high_recovery;