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)
committerSebastian Reichel <sre@kernel.org>
Mon, 5 Apr 2021 15:51:21 +0000 (17:51 +0200)
commit04722cec1436c732d39153ce6ae2ebf71ac3ade7
treea51f02df75aa1f07f4823293a6d724aa199cfb75
parent2509555070acb863920b3c89bb678e1a2c7d0c00
power: supply: bq25980: Move props from battery node

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