[PATCH v2 0/2] iio: use int type to store negative error codes

Qianfeng Rong posted 2 patches 1 month ago
drivers/iio/dac/ad5360.c | 2 +-
drivers/iio/dac/ad5421.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[PATCH v2 0/2] iio: use int type to store negative error codes
Posted by Qianfeng Rong 1 month ago
Use int instead of unsigned int for 'ret' variable in ad5360_update_ctrl()
and ad5421_update_ctrl() to store negative error codes or zero returned by
other functions.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
---
v2: Split each driver into a separate patch.
---
Qianfeng Rong (2):
  iio: dac: ad5360: use int type to store negative error codes
  iio: dac: ad5421: use int type to store negative error codes

 drivers/iio/dac/ad5360.c | 2 +-
 drivers/iio/dac/ad5421.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.34.1
Re: [PATCH v2 0/2] iio: use int type to store negative error codes
Posted by Jonathan Cameron 1 month ago
On Mon,  1 Sep 2025 21:57:24 +0800
Qianfeng Rong <rongqianfeng@vivo.com> wrote:

> Use int instead of unsigned int for 'ret' variable in ad5360_update_ctrl()
> and ad5421_update_ctrl() to store negative error codes or zero returned by
> other functions.
> 
> Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
> ---
> v2: Split each driver into a separate patch.
Thanks for doing that.

Applied to the fixes-togreg branch of iio.git and marked for stable inclusion.

Thanks,

Jonathan

> ---
> Qianfeng Rong (2):
>   iio: dac: ad5360: use int type to store negative error codes
>   iio: dac: ad5421: use int type to store negative error codes
> 
>  drivers/iio/dac/ad5360.c | 2 +-
>  drivers/iio/dac/ad5421.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
Re: [PATCH v2 0/2] iio: use int type to store negative error codes
Posted by Andy Shevchenko 1 month ago
On Mon, Sep 01, 2025 at 09:57:24PM +0800, Qianfeng Rong wrote:
> Use int instead of unsigned int for 'ret' variable in ad5360_update_ctrl()
> and ad5421_update_ctrl() to store negative error codes or zero returned by
> other functions.

Both LGTM
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

-- 
With Best Regards,
Andy Shevchenko