commit | c68b901ac4fa969db8917b6a9f9b40524a690d20 | [log] [tgz] |
---|---|---|
author | Tony Lindgren <tony@atomide.com> | Sun Apr 07 11:12:50 2019 -0700 |
committer | Sebastian Reichel <sre@kernel.org> | Mon Apr 15 22:52:14 2019 +0200 |
tree | 329f0151fee4ae8334ee3a02fd1029ccb8e0fc40 | |
parent | 1a9aadc86ad45f5281ea633c244b6b770dc85b5b [diff] |
power: supply: cpcap-battery: Fix signed counter sample register The accumulator sample register is signed 32-bits wide register on droid 4. And only the earlier version of cpcap has a signed 24-bits wide register. We're currently passing it around as unsigned, so let's fix that and use sign_extend32() for the earlier revision. Signed-off-by: Tony Lindgren <tony@atomide.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>