power: supply: tps65217: Use 'poll_task' on unloading the module
authorMilo Kim <woogyom.kim@gmail.com>
Sun, 18 Dec 2016 02:54:26 +0000 (11:54 +0900)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:00:14 +0000 (22:00 +0100)
commit9ef0bf1184a6dfb6d6dca1feca4c28d0d8da519c
tree5b5b74063dd17a55e7f9028f30f4022db34964b1
parentbdca5d9e6b9ab0082a2aeb810941d78f10b75e63
power: supply: tps65217: Use 'poll_task' on unloading the module

Use the task_struct variable for running polling thread. If polling task
is activated, then use it to stop running thread.
This is a preceding step of supporting two interrupts of TPS65217 charger,
so checking single IRQ number is not appropriate when the module is removed.

Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/tps65217_charger.c