]> git.ipfire.org Git - thirdparty/linux.git/commit
power: supply: max17042_battery: use ModelCfg refresh on max17055
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Mon, 6 Apr 2026 20:57:55 +0000 (16:57 -0400)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 3 Jun 2026 19:56:01 +0000 (21:56 +0200)
commitb26bc0b97d8d1b7454b7f7ab64f1bda8d1cd4002
treedae7aebd3f0f7e4e839d7dc1a1e35f9fb575e93b
parentd0c54c6f9dab20f93185df7722ed133097aaccb3
power: supply: max17042_battery: use ModelCfg refresh on max17055

Unlike other models, max17055 doesn't require cell characterization data
and operates on a smaller set of input variables (`DesignCap`, `VEmpty`,
`IChgTerm`, and `ModelCfg`). Those values can be filled in through
`max17042_override_por_values()`, but the refresh bit has to be set
afterward in order to make them apply.

Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Signed-off-by: Vincent Cloutier <vincent@cloutier.co>
Link: https://patch.msgid.link/20260406205759.493288-8-vincent.cloutier@icloud.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c
include/linux/power/max17042_battery.h