]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: sbs-manager: Add alert callback and battery change notification
authorPhil Reid <preid@electromag.com.au>
Thu, 24 Aug 2017 09:31:09 +0000 (17:31 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 28 Oct 2017 21:43:25 +0000 (23:43 +0200)
commit68a44885569c1d69cdd47e8dff32ad93ffe338bd
tree285e7473038d00944200fba6972916661c71c924
parent99d71b43183e8314dec22e475e0e9ce7655a3381
power: supply: sbs-manager: Add alert callback and battery change notification

This adds smb alert support via the smbus_alert driver to generate
power_supply_changed notifications when either external power is
removed / applied or a battery inserted / removed.
Use the i2c alert callback to notify the attached battery driver that a
change has occurred.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/power/supply/Kconfig
drivers/power/supply/sbs-manager.c