power: supply: sbs-battery: Don't ignore the first external power change
authorPaul Kocialkowski <contact@paulk.fr>
Tue, 25 Apr 2017 15:09:04 +0000 (17:09 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 10:43:20 +0000 (12:43 +0200)
commit4df2cce4722d35eb35bb9371e7c9a600a84558f9
tree7c120731edbac1c50b2c4242d06dcfe7431f3705
parent633e8799ddc09431be2744c4a1efdbda13af2b0b
power: supply: sbs-battery: Don't ignore the first external power change

A mechanism to ignore the first external power change notification was
put in place years ago to ignore the power_supply_register notification.

However, this doesn't apply to the current situation anymore, as the
first notification is always the result of a legitimate power change.

This removes this deprecated mechanism, which puts back the driver's
state machine to a sane state (an ignored first notification previously
caused a charging/discharging status inversion).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/sbs-battery.c