]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: max77976_charger: fix constant current reporting
authorDzmitry Sankouski <dsankouski@gmail.com>
Thu, 18 Sep 2025 17:06:45 +0000 (20:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:14 +0000 (16:23 +0200)
commit07f4a3a9cb69ec09b6625663684cc8444686b70d
tree2574db0f3f721565a8d1f3736d638b6de10ce2d0
parent60cb35d82ea05e08a095b608edb22bf12562ad2c
power: supply: max77976_charger: fix constant current reporting

commit ee6cd8f3e28ee5a929c3b67c01a350f550f9b73a upstream.

CHARGE_CONTROL_LIMIT is a wrong property to report charge current limit,
because `CHARGE_*` attributes represents capacity, not current. The
correct attribute to report and set charge current limit is
CONSTANT_CHARGE_CURRENT.

Rename CHARGE_CONTROL_LIMIT to CONSTANT_CHARGE_CURRENT.

Cc: stable@vger.kernel.org
Fixes: 715ecbc10d6a ("power: supply: max77976: add Maxim MAX77976 charger driver")
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/max77976_charger.c