]> git.ipfire.org Git - thirdparty/linux.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)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 18 Sep 2025 21:26:27 +0000 (23:26 +0200)
commitee6cd8f3e28ee5a929c3b67c01a350f550f9b73a
treec9ceb57e3986ed199d4471ee7b06a6e627b58170
parentcc3e883a06251ba835f15672dbe8724f2687971b
power: supply: max77976_charger: fix constant current reporting

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>
drivers/power/supply/max77976_charger.c