]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: pressure: mprls0025pa: stricter checks for the status byte
authorPetre Rodan <petre.rodan@subdimension.ro>
Wed, 14 Jan 2026 16:55:40 +0000 (18:55 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Jan 2026 17:40:41 +0000 (17:40 +0000)
commit84e15e1a6e103e5b57852d90ac686d7f0d0d8b0a
treef76d34f63f8d15399237d961d745ddc55d6aca9d
parent4edab7b08783f06679de0d24318d92ffc1dfd537
iio: pressure: mprls0025pa: stricter checks for the status byte

Make sure a valid conversion comes with a status byte that only has
the MPR_ST_POWER bit set.
Return -EBUSY if also MPR_ST_BUSY is set or -EIO otherwise.

Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/mprls0025pa.c