]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: bq25980: Move props from battery node
authorRicardo Rivera-Matos <r-rivera-matos@ti.com>
Wed, 10 Feb 2021 22:56:46 +0000 (16:56 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:54 +0000 (10:49 +0200)
commit061a50221b804e22d4c7ded8fb9a4bd644892801
tree28e92f861ec215d37573707b5f06a2ba6bbcc918
parent2f95917389c0c3686d16d62d86cbca5b542d6eec
power: supply: bq25980: Move props from battery node

[ Upstream commit 04722cec1436c732d39153ce6ae2ebf71ac3ade7 ]

Currently POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT and
POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE are exposed on
the battery node and this is incorrect.

This patch exposes both of them on the charger node rather
than the battery node.

Fixes: 5069185fc18e ("power: supply: bq25980: Add support for the BQ259xx family")
Signed-off-by: Ricardo Rivera-Matos <r-rivera-matos@ti.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/bq25980_charger.c