Re: [PATCH 04/24] Input: gpio-vibra - Simplify with dev_err_probe()

2020-08-27 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 12:03:52PM +0300, Andy Shevchenko wrote: > On Wed, Aug 26, 2020 at 9:20 PM Krzysztof Kozlowski wrote: > > > > Common pattern of handling deferred probe can be simplified with > > dev_err_probe(). Less code and also it prints the error value. > > > vibrator->vcc =

Re: [PATCH 04/24] Input: gpio-vibra - Simplify with dev_err_probe()

2020-08-27 Thread Andy Shevchenko
On Wed, Aug 26, 2020 at 9:20 PM Krzysztof Kozlowski wrote: > > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > vibrator->vcc = devm_regulator_get(>dev, "vcc"); > err =

[PATCH 04/24] Input: gpio-vibra - Simplify with dev_err_probe()

2020-08-26 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski --- drivers/input/misc/gpio-vibra.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git