Skip to content
Snippets Groups Projects
Commit 13f83e1a authored by John Muir's avatar John Muir
Browse files

power: qpnp-fg-gen3: Fix DC battery detection.

Current code reads the dc_batt_id and id_range_pct values from
the DT after they are used in is_dc_batt_id.

Fix this code to load the DT properties when they are needed, and
also add a fake charge counter value.

Bug: 111000040
Test: Battery charging works normally on a device with a real
      battery.
      DC battery is detected correctly on a device with a power
      supply, and charging is disabled.
      Charge counter is non-zero.
Change-Id: I82ffedcfcc09c83750b48d35c60f6ca299b502b3
parent 7cd3c77e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment