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)
commit03c469b4f36bf86fcf9f08aeba9a3f98c51eb081
treedc503fa91c9347641620ac9be033b7234854933a
parenta84486b8f3401c376347583afb7b29d74721377d
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