]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
power: supply: cpcap-battery: Fix coulomb counter calibration register use
authorTony Lindgren <tony@atomide.com>
Sun, 7 Apr 2019 18:12:51 +0000 (11:12 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Apr 2019 20:52:52 +0000 (22:52 +0200)
commit35439b7ab2dbd458377efaa979820360f4951784
tree97b459a2ba7d98248dc9c1a72a9f6a4c9a3f04a2
parentc68b901ac4fa969db8917b6a9f9b40524a690d20
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>
drivers/power/supply/cpcap-battery.c