]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: sc2731_charger: Add one work to charge/discharge
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 12 Nov 2018 10:52:35 +0000 (18:52 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 5 Dec 2018 22:48:17 +0000 (23:48 +0100)
commit748de690ac3879f823c64e5087b6c51c42a37b6f
treeae77641d574179e19e8edb57aa0873d49d6953b2
parent07fc000024982ec191065289a323523737f087c4
power: supply: sc2731_charger: Add one work to charge/discharge

Since the USB notifier context is atomic, we can not start or stop charging
in atomic context. Thus this patch adds one work to help to charge or
discharge.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc2731_charger.c