Re: [PATCH v1 3/4] iio: chemical: sps30: Unshadow error codes in ->store()
From: Maxwell Doose
Date: Thu Aug 13 2026 - 13:54:22 EST
On Thu Aug 13, 2026 at 2:16 AM CDT
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> kstrtox() may return different error codes.
>
> Unshadow them in the ->store() callback to give better error report.
>
> While at it, add missing kstrtox.h inclusion.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> drivers/iio/chemical/sps30.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
Reviewed-by: Maxwell Doose <maxwell@xxxxxxxxxxx>
thanks,
max