commit | d3c435e37b1c1b2bd46c92177872a616c9709931 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Thu Aug 16 19:23:18 2012 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Thu Aug 16 19:28:30 2012 -0700 |
tree | 33bbaa705072e59ce80350e162ef6024340b71c7 | |
parent | 37d554a44e05e5cf9c33ac6b2376b5e6ea941a17 [diff] |
power: pm8921-bms: fix 0% soc reported when started with a charger When the device is started with a charger inserted, it reports 0% soc. This is because a variable "soc_at_cv" is not initialized correctly in the probe function. Fix this by initializing it appropriately to -EINVAL. Change-Id: I106f36e204c5cc4f16a8f52b9fa7a2a012282e35 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>