Re: [PATCH] input: misc: pwm-vibra: Prevent unbalanced regulator

2019-01-17 Thread Paweł Chmiel
czw., 17 sty 2019 o 08:08 Dmitry Torokhov napisał(a): > > Hi Paweł, > > On Wed, Jan 16, 2019 at 10:11:31PM +0100, Paweł Chmiel wrote: > > From: Jonathan Bakker > > > > pwm_vibrator_stop disables the regulator, but it can be called from > > multiple places, even when the regulator is already disab

Re: [PATCH] input: misc: pwm-vibra: Prevent unbalanced regulator

2019-01-16 Thread Dmitry Torokhov
Hi Paweł, On Wed, Jan 16, 2019 at 10:11:31PM +0100, Paweł Chmiel wrote: > From: Jonathan Bakker > > 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

[PATCH] input: misc: pwm-vibra: Prevent unbalanced regulator

2019-01-16 Thread Paweł Chmiel
From: Jonathan Bakker 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 Signed-off-by: Paweł Chmiel ---