power: supply: sbs-battery: Add alert callback
authorPhil Reid <preid@electromag.com.au>
Mon, 1 May 2017 08:49:58 +0000 (16:49 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 12:28:19 +0000 (14:28 +0200)
commitcda3b01368391b48728b7edbbac0ca873b514367
tree61030f202f70adace342d72283ddc073016d8e3f
parentcad87f097ca2d56093145c4becd487f5c186a612
power: supply: sbs-battery: Add alert callback

To simplify the sbs-manager code and notification of battery removal
use the i2c alert callback to notify the sbs-battery driver that an
event has occurred.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/sbs-battery.c