linux-stable/drivers/power
Tony Lindgren 52600d00af power: supply: cpcap-battery: Fix signed counter sample register
[ Upstream commit c68b901ac4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-17 20:35:37 +01:00
..
avs PM / AVS: SmartReflex: NULL check before some freeing functions is not needed 2019-12-05 09:20:02 +01:00
reset power: reset: at91-poweroff: do not procede if at91_shdwc is allocated 2019-11-20 18:46:46 +01:00
supply power: supply: cpcap-battery: Fix signed counter sample register 2019-12-17 20:35:37 +01:00
Kconfig power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00
Makefile power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00