power: supply: axp288_charger: Some minor cleanups
authorHans de Goede <hdegoede@redhat.com>
Wed, 21 Dec 2016 14:36:53 +0000 (15:36 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:03:00 +0000 (22:03 +0100)
commitbcd39ba7327e806190761aeefa953099e68ebe24
treef548cf06f1bd8966210a7f919ff404a66438a495
parent71851a63af60cb98cb877e52776b2700e868683b
power: supply: axp288_charger: Some minor cleanups

Remove info->health, info->present and info->online caching, as no code
is reading the cached values.

Remove if (changed) check before calling power_supply_changed(), we
return early from axp288_charger_extcon_evt_worker if nothing has
changed, so the check is not needed.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/axp288_charger.c