[PATCH v1 0/4] iio: Unshadow error codes in ->store()

Andy Shevchenko posted 4 patches 1 month, 2 weeks ago
drivers/iio/adc/pac1934.c                  |  9 ++++++---
drivers/iio/chemical/sps30.c               | 11 ++++++++---
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c |  6 ++++--
drivers/iio/light/isl29018.c               |  7 +++++--
drivers/iio/light/lm3533-als.c             | 11 +++++++----
drivers/iio/light/tsl2583.c                | 15 +++++++++++----
drivers/iio/light/tsl2772.c                | 16 ++++++++++++----
7 files changed, 53 insertions(+), 22 deletions(-)
[PATCH v1 0/4] iio: Unshadow error codes in ->store()
Posted by Andy Shevchenko 1 month, 2 weeks ago
kstrtox() may return different error codes. Allow them to be returned.
This mini-series makes all IIO drivers to follow the same pattern when
using kstrtox() APIs. Patches can be individually applied, the series
is just a union by the subject, no code dependencies are there.

Andy Shevchenko (4):
  iio: light: Unshadow error codes in ->store()
  iio: imu: inv_mpu6050: Unshadow error codes in ->store()
  iio: chemical: sps30: Unshadow error codes in ->store()
  iio: adc: pac1934: Unshadow error codes in ->store()

 drivers/iio/adc/pac1934.c                  |  9 ++++++---
 drivers/iio/chemical/sps30.c               | 11 ++++++++---
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c |  6 ++++--
 drivers/iio/light/isl29018.c               |  7 +++++--
 drivers/iio/light/lm3533-als.c             | 11 +++++++----
 drivers/iio/light/tsl2583.c                | 15 +++++++++++----
 drivers/iio/light/tsl2772.c                | 16 ++++++++++++----
 7 files changed, 53 insertions(+), 22 deletions(-)

-- 
2.50.1
Re: [PATCH v1 0/4] iio: Unshadow error codes in ->store()
Posted by Jonathan Cameron 1 month, 1 week ago
On Thu, 13 Aug 2026 09:16:49 +0200
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> kstrtox() may return different error codes. Allow them to be returned.
> This mini-series makes all IIO drivers to follow the same pattern when
> using kstrtox() APIs. Patches can be individually applied, the series
> is just a union by the subject, no code dependencies are there.
> 
> Andy Shevchenko (4):
>   iio: light: Unshadow error codes in ->store()
>   iio: imu: inv_mpu6050: Unshadow error codes in ->store()
>   iio: chemical: sps30: Unshadow error codes in ->store()
>   iio: adc: pac1934: Unshadow error codes in ->store()
Applied.  thanks

Jonathan

> 
>  drivers/iio/adc/pac1934.c                  |  9 ++++++---
>  drivers/iio/chemical/sps30.c               | 11 ++++++++---
>  drivers/iio/imu/inv_mpu6050/inv_mpu_core.c |  6 ++++--
>  drivers/iio/light/isl29018.c               |  7 +++++--
>  drivers/iio/light/lm3533-als.c             | 11 +++++++----
>  drivers/iio/light/tsl2583.c                | 15 +++++++++++----
>  drivers/iio/light/tsl2772.c                | 16 ++++++++++++----
>  7 files changed, 53 insertions(+), 22 deletions(-)
>