patch "iio: dac: ad5770r: fix error return in ad5770r_read_raw()" added to char-misc-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iio: dac: ad5770r: fix error return in ad5770r_read_raw()
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From c354521708175d776d896f8bdae44b18711eccb6 Mon Sep 17 00:00:00 2001
From: Antoniu Miclaus <[email protected]>
Date: Thu, 12 Mar 2026 13:20:24 +0200
Subject: iio: dac: ad5770r: fix error return in ad5770r_read_raw()
Return the error code from regmap_bulk_read() instead of 0 so that I/O failures are properly propagated.
--- drivers/iio/dac/ad5770r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/dac/ad5770r.c +1 -1
@@ -322,7 +322,7 @@ static int ad5770r_read_raw(struct iio_dev *indio_dev, chan->address, st->transf_buf, 2);if (ret) -return 0 ; +return ret; buf16 =get_unaligned_le16 (st->transf_buf); *val = buf16 >>2 ;
Signature · 1 line
2.53.0