commit | 3ca232df9921f083c3b37ba5fbc76f4d9046268b | [log] [tgz] |
---|---|---|
author | Jonathan Bakker <xc-racer2@live.ca> | Mon Jan 28 11:13:01 2019 -0800 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Mon Jan 28 11:24:18 2019 -0800 |
tree | f9e6dac49b74e92cec38f1dbd7c6b500c185acbc | |
parent | 4d741f3dd11c2a8a11536d568f14ab0321169f3d [diff] |
Input: pwm-vibra - prevent unbalanced regulator pwm_vibrator_stop disables the regulator, but it can be called from multiple places, even when the regulator is already disabled. Fix this by using regulator_is_enabled check when starting and stopping device. Signed-off-by: Jonathan Bakker <xc-racer2@live.ca> Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>