kernel:battery driver avoid i2c operation before suspend
authorxuwei9 <xuwei9@lenovo.com>
Thu, 3 Jan 2019 06:18:50 +0000 (14:18 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:52 +0000 (17:36 +0800)
commitc4ded8d2f3d5f63cdd083ca81bc611591ee46cb3
tree2350796630761dd05621c14c6e2dbae302b69af8
parentcf710832129dc0cbd77dfd67f4955dfbb7ce4a4a
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