power: supply: axp288-charger: Simplify axp288_get_charger_health()
authorHans de Goede <hdegoede@redhat.com>
Mon, 18 Oct 2021 13:50:53 +0000 (15:50 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 18 Oct 2021 16:18:56 +0000 (18:18 +0200)
commit5b5100c569b533195d9535fd2155d9f1cf389d0c
tree3358cdbc1b32818f0bc6663e79b8e459d5506fda
parent9052ff9b0387a6931d40f6999186099d038d2d33
power: supply: axp288-charger: Simplify axp288_get_charger_health()

Now that axp288_charger_usb_update_property() reads and caches all
relevant registers, axp288_get_charger_health() can be simplified
by directly returning the health.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_charger.c