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)
commit8ac1091ed18b4a6cb0dc2cd5653f080736f89392
treeae77641d574179e19e8edb57aa0873d49d6953b2
parente6ae9a05a41abdb80b4d93574e84609a35cfb98c
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