]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: adxl313: add missing error check in predisable
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Thu, 12 Mar 2026 11:20:23 +0000 (13:20 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 22 Mar 2026 11:48:12 +0000 (11:48 +0000)
commit9d3fa23d5d55a137fd4396d3d4799102587a7f2b
tree06afe76882dd05f68a35943aca842fa385d65e4f
parentc354521708175d776d896f8bdae44b18711eccb6
iio: accel: adxl313: add missing error check in predisable

Check the return value of the FIFO bypass regmap_write() before
proceeding to disable interrupts.

Fixes: ff8093fa6ba4 ("iio: accel: adxl313: add buffered FIFO watermark with interrupt handling")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl313_core.c