Commit 8aff7502 authored by Sean Nyekjaer's avatar Sean Nyekjaer Committed by Angus Ainslie (Purism)

iio: imu: st_lsm6dsx: flip irq return logic

ec76d918f230 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: default avatarSean Nyekjaer <>
Signed-off-by: default avatarJonathan Cameron <>
parent fca8609c
......@@ -670,7 +670,7 @@ static irqreturn_t st_lsm6dsx_handler_thread(int irq, void *private)
count = hw->settings->fifo_ops.read_fifo(hw);
return !count ? IRQ_NONE : IRQ_HANDLED;
return count ? IRQ_HANDLED : IRQ_NONE;
static int st_lsm6dsx_buffer_preenable(struct iio_dev *iio_dev)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment