]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:09:42 +0000 (20:09 +0100)
commitbac70a89419abe43d516b40850a4b3a0134e7466
tree2824175dcb53ef7e9cf9f4f63cc189c3bf9dc78d
parent0ed72d3f6f1d62a4759595e9c87c725bf110b95b
Input: pwm-vibra - stop regulator after disabling pwm, not before

[ Upstream commit 94803aef3533676194c772383472636c453e3147 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/misc/pwm-vibra.c