commit | 9e94898c6064304d421d0f17211f25f07927a9f1 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Tue Aug 28 15:21:23 2012 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Tue Aug 28 16:14:47 2012 -0700 |
tree | e46ec7e3ab123aa5934a0d8a476c373b66d49095 | |
parent | a4ed55c1f054111d59ff73f1e77867ad1fbe40c3 [diff] |
power: pm8921-bms: use restart reason for usb detection When the charger is not initialized it returns -EINVAL when asked whether usb charger is plugged in. Use the restart reason to check if we started with a charger insertion. Change-Id: I2e8fcb4a15af3a66331a921d378bfd5d2dfe4533 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>