Skip to content

Commit ec76d91

Browse files
sknseanjic23
authored andcommitted
iio: imu: st_lsm6dsx: flip irq return logic
No need for using reverse logic in the irq return, fix this by flip things around. Signed-off-by: Sean Nyekjaer <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 2660b00 commit ec76d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ static irqreturn_t st_lsm6dsx_handler_thread(int irq, void *private)
670670
count = hw->settings->fifo_ops.read_fifo(hw);
671671
mutex_unlock(&hw->fifo_lock);
672672

673-
return !count ? IRQ_NONE : IRQ_HANDLED;
673+
return count ? IRQ_HANDLED : IRQ_NONE;
674674
}
675675

676676
static int st_lsm6dsx_buffer_preenable(struct iio_dev *iio_dev)

0 commit comments

Comments
 (0)