commit | 35439b7ab2dbd458377efaa979820360f4951784 | [log] [tgz] |
---|---|---|
author | Tony Lindgren <tony@atomide.com> | Sun Apr 07 11:12:51 2019 -0700 |
committer | Sebastian Reichel <sre@kernel.org> | Mon Apr 15 22:52:52 2019 +0200 |
tree | 97b459a2ba7d98248dc9c1a72a9f6a4c9a3f04a2 | |
parent | c68b901ac4fa969db8917b6a9f9b40524a690d20 [diff] |
power: supply: cpcap-battery: Fix coulomb counter calibration register use The coulomb counter calibration is not CCO, it's CCM. And the CCM is nine bits wide signed register, so let's use sign_extend32() for it. Signed-off-by: Tony Lindgren <tony@atomide.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>