commit | 014b6745c5d612aed6f74bf7c5ad2ae0b2653a4b | [log] [tgz] |
---|---|---|
author | George Lee <[email protected]> | Mon May 17 11:25:22 2021 -0700 |
committer | TreeHugger Robot <[email protected]> | Wed May 19 17:26:14 2021 +0000 |
tree | 5960e186da339fc33767e7485be1d7b2c697d488 | |
parent | c0621d9fdad58b6c57d692119e664ea6028ea3c6 [diff] |
max1720x_battery: Cycle count needs to be positive Conversion for signed 16 bit can yield negative cycle count. Battery cycle count should never be negative. Switching to signed 32 bit for calculation. Bug: 188245977 Signed-off-by: George Lee <[email protected]> Change-Id: If854ecadf873ff698c6925a4ee7f92b0670f25ae