max1720x_battery: support fix cycle count and history
- Add sysfs node to fix cycle count and history functionality.
- Remove recursive call in max1720x_restore_battery_cycle().
Bug: 322426625
Test: manually write wrong history and cycle count then recover to
normal cycle count successfully.
Change-Id: I60808ebf190e37eedd87a0f1bbdf34ccc894657d
Merged-In: I2b4a7e9c76c52e5ae963cbbb20ac2504474701d0
Signed-off-by: Spade Lee <spadelee@google.com>
(cherry picked from commit 46d54b5736a53207528f317f8bc94cfd8871f377)
2 files changed