Re: [PATCH] power: supply: max17042_battery: Fix SOC threshold calc w/ no current sense
From: Sebastian Reichel
Date: Tue Aug 27 2024 - 12:59:19 EST
On Sat, 17 Aug 2024 12:51:14 +0200, Artur Weber wrote:
> Commit 223a3b82834f ("power: supply: max17042_battery: use VFSOC for
> capacity when no rsns") made it so that capacity on systems without
> current sensing would be read from VFSOC instead of RepSOC. However,
> the SOC threshold calculation still read RepSOC to get the SOC
> regardless of the current sensing option state.
>
> Fix this by applying the same conditional to determine which register
> should be read.
>
> [...]
Applied, thanks!
[1/1] power: supply: max17042_battery: Fix SOC threshold calc w/ no current sense
commit: 3a3acf839b2cedf092bdd1ff65b0e9895df1656b
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>