power: pm8921-charger: report battery state based on fsm state
The current code looks at few irq states and reports the battery state.
Instead map an fsm state to battery state and report that state instead.
This will be more accurate than the current method.
Change-Id: I42bc2625fa43cf97d03801a0fcf6ad34eabc042e
CRs-Fixed: 313654
Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please sign in to comment