power: supply: axp288_charger: Remove charger-enabled state tracking
authorHans de Goede <hdegoede@redhat.com>
Tue, 26 Dec 2017 12:59:01 +0000 (13:59 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 8 Jan 2018 17:38:57 +0000 (18:38 +0100)
commit672b4b00603ec8e4e4fbfabbb2fd353c5f8523c4
tree067291b6375e91d8c5b15f1d47eafb5aab167ca5
parenta59943f8f6a74460254515b359dfd045615adc9a
power: supply: axp288_charger: Remove charger-enabled state tracking

The extcon code is the only one to trigger our worker (outside of the
initial run) and we can rely on it to only call us if things have
changed, so there is no need to track the charger-enabled state.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp288_charger.c