]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: axp288-charger: Remove unnecessary is_present and is_online helpers
authorHans de Goede <hdegoede@redhat.com>
Mon, 18 Oct 2021 13:50:52 +0000 (15:50 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 18 Oct 2021 16:18:56 +0000 (18:18 +0200)
commit97fa375ec80098d397225dd8ebb13a53cd7cb070
tree746897b5b81c82495e1cd6d3d091348c14671edf
parentf8f304822cdc000698f4d45bec771e0d643a3e87
power: supply: axp288-charger: Remove unnecessary is_present and is_online helpers

Now that axp288_charger_usb_update_property() reads and caches all
relevant registers, the axp288_charger_is_present() and
axp288_charger_is_online() helpers are not necessary anymore.

Directly check the cached input_status instead, allowing the removal
of these 2 helpers.

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