]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: imu: bmi323: Fix trigger notification in case of error
authorVasileios Amoiridis <vassilisamir@gmail.com>
Wed, 8 May 2024 15:54:07 +0000 (17:54 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 27 May 2024 08:49:20 +0000 (09:49 +0100)
commitbedb2ccb566de5ca0c336ca3fd3588cea6d50414
treebde6ee3aa605568dbab95da649d2ab3a3e8937c0
parent279428df888319bf68f2686934897301a250bb84
iio: imu: bmi323: Fix trigger notification in case of error

In case of error in the bmi323_trigger_handler() function, the
function exits without calling the iio_trigger_notify_done()
which is responsible for informing the attached trigger that
the process is done and in case there is a .reenable(), to
call it.

Fixes: 8a636db3aa57 ("iio: imu: Add driver for BMI323 IMU")
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://lore.kernel.org/r/20240508155407.139805-1-vassilisamir@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/bmi323/bmi323_core.c