patch "iio: pressure: rohm-bm1390: Return error when read fails" added to char-misc-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iio: pressure: rohm-bm1390: Return error when read fails
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 b0e951ffc5a28141a106562997ca136ec6a0e1a3 Mon Sep 17 00:00:00 2001
From: Matti Vaittinen <[email protected]>
Date: Mon, 10 Aug 2026 10:52:47 +0300
Subject: iio: pressure: rohm-bm1390: Return error when read fails
The data reading function ignores the cached error value, and unconditionally returns 0. Return cached 'ret' -value after stopping the measurement so user knows if read failed and data is garbage.
--- drivers/iio/pressure/rohm-bm1390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/pressure/rohm-bm1390.c +1 -1
@@ -289,7 +289,7 @@ static int bm1390_read_data(struct bm1390_data *data,if (warn)dev_warn (data->dev,"Failed to stop measurement (%d)\n" , warn); -return 0 ; +return ret; } static int bm1390_read_raw(struct iio_dev *idev,
Signature · 1 line
2.55.0