OSDN Git Service

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)
commit94803aef3533676194c772383472636c453e3147
treea612da0a1533bc936d48ca26a59da499ae911511
parent3ca232df9921f083c3b37ba5fbc76f4d9046268b
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