power: disable bq2597x_mmi ADC during shutdown

Disable bq2597x_mmi ADC function during the phone shutdown

Change-Id: Icfa828624296979daca6dc810f9230ade1cac600
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1212343
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xuwt2 2018-07-19 16:58:37 +08:00 • committed by Wentao Xu
commit 424f60c2ac

View file

@ -2233,6 +2233,8 @@ static int bq2597x_charger_remove(struct i2c_client *client)
static void bq2597x_charger_shutdown(struct i2c_client *client)
{
struct bq2597x *bq = i2c_get_clientdata(client);
bq2597x_enable_adc(bq, false);
pr_info("Shutdown Successfully\n");
}