]> git.baikalelectronics.ru Git - kernel.git/commit
Input: pwm-vibra - stop regulator after disabling pwm, not before
authorPaweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Mon, 28 Jan 2019 19:13:34 +0000 (11:13 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Jan 2019 19:24:19 +0000 (11:24 -0800)
commit5f6b9d57274cfcce629db6bee124f8fd09c7bca7
treea612da0a1533bc936d48ca26a59da499ae911511
parent376d07c67fe117e7b3e8eba2448d86303dd4a0d5
Input: pwm-vibra - stop regulator after disabling pwm, not before

This patch fixes order of disable calls in pwm_vibrator_stop.
Currently when starting device, we first enable vcc regulator and then
setup and enable pwm. When stopping, we should do this in oposite order,
so first disable pwm and then disable regulator.
Previously order was the same as in start.

Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pwm-vibra.c