Commit 7d064363 authored by Matt Ranostay's avatar Matt Ranostay Committed by Jonathan Cameron

iio: proximity: as3935: remove triggered buffer processing

Triggered buffers shouldn't return processed data, and the respective
conversion was overflowing the defined .realbits for the channel.

Cc: george.mccollister@gmail.com
Signed-off-by: default avatarMatt Ranostay <mranostay@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 5138806f
...@@ -213,7 +213,6 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private) ...@@ -213,7 +213,6 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private)
if (ret) if (ret)
goto err_read; goto err_read;
val &= AS3935_DATA_MASK; val &= AS3935_DATA_MASK;
val *= 1000;
iio_push_to_buffers_with_timestamp(indio_dev, &val, pf->timestamp); iio_push_to_buffers_with_timestamp(indio_dev, &val, pf->timestamp);
err_read: err_read:
......
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