commit | cda0d1c69536f0313ebe487c323aa12feed048cf | [log] [tgz] |
---|---|---|
author | Ashay Jaiswal <ashayj@codeaurora.org> | Mon May 15 17:15:29 2017 +0530 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Wed Jul 05 13:49:42 2017 -0700 |
tree | 7c3489a620cdab1f8ab78b119edbba3c07b35a51 | |
parent | 5b8e7a4ac05360e59290ecad284d96b1e302cf4c [diff] |
qpnp-smb2: Fix QC_PULSE_COUNT reading logic QC_PULSE_COUNT register offset differs between PMI8998 and PM660. Use common function "smblib_get_pulse_cnt" to read the pulse count instead of directly reading the register. While at it, update the "smblib_get_pulse_cnt" function to return software based pulse count if HW INOV is disabled. Change-Id: Iab935b352dd75365d1f9862d7a7986cd1c476f66 Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>