Re: [PATCH 08/16] iio: adc: stm32: Simplify with dev_err_probe()

From: Krzysztof Kozlowski
Date: Wed Aug 26 2020 - 12:17:36 EST


On Wed, Aug 26, 2020 at 04:51:45PM +0200, 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.
>
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> ---
> drivers/iio/adc/stm32-adc-core.c | 62 ++++++++++++-------------------
> drivers/iio/adc/stm32-adc.c | 10 ++---
> drivers/iio/adc/stm32-dfsdm-adc.c | 10 ++---
> 3 files changed, 30 insertions(+), 52 deletions(-)

For this one I have a follow up - I found more of places for conversion.
I will send v2 for this one only.

Best regards,
Krzysztof