kernel:battery driver avoid i2c operation before suspend
authorxuwei9 <xuwei9@lenovo.com>
Thu, 3 Jan 2019 06:18:50 +0000 (14:18 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:30 +0000 (17:30 +0800)
commit87f87c4749d4fd7a0bfd54f28dc2f0fa84618241
treedc503fa91c9347641620ac9be033b7234854933a
parent4ede53446cb303da1380ab6b9214180f01d6eb06
kernel:battery driver avoid i2c operation before suspend

avoid i2c operation before
suspspend in case i2c error

Change-Id: I1e570242913797114d0479534cc36d8e575fb930
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1289230
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
drivers/power/supply/s2mu00x_battery.c