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

Krzysztof Kozlowski krzk at kernel.org
Wed Aug 26 12:17:19 EDT 2020


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 at kernel.org>
> ---
>  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




More information about the linux-arm-kernel mailing list