diff options
| author | Matti Vaittinen <mazziesaccount@gmail.com> | 2026-08-10 10:52:47 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-08-31 00:52:41 +0100 |
| commit | b0e951ffc5a28141a106562997ca136ec6a0e1a3 (patch) | |
| tree | 8e6c90c8e180d61ef9fac03e047da468bcfedc6e /tools/lib/python/kdoc/python_version.py | |
| parent | 55671fbc3d12ae1f381842433567fcb7ff96a298 (diff) | |
| download | linux-next-b0e951ffc5a28141a106562997ca136ec6a0e1a3.tar.gz linux-next-b0e951ffc5a28141a106562997ca136ec6a0e1a3.zip | |
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.
Fixes: 534674463a59 ("iio: bm1390: simplify using guard(mutex)")
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
