summaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity/as3935.c
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-05-22 05:01:02 +0200
committerJonathan Cameron <jic23@kernel.org>2016-05-22 21:53:53 +0200
commit7d0643634ea567969bf3f3ed6193a9d6fc75653b (patch)
tree5b397a14067ea3c930e2348af4838743e29045de /drivers/iio/proximity/as3935.c
parentiio: proximity: as3935: correct IIO_CHAN_INFO_RAW output (diff)
downloadlinux-7d0643634ea567969bf3f3ed6193a9d6fc75653b.tar.xz
linux-7d0643634ea567969bf3f3ed6193a9d6fc75653b.zip
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: Matt Ranostay <mranostay@gmail.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/proximity/as3935.c')
-rw-r--r--drivers/iio/proximity/as3935.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c
index f0a0defb68a4..6aed02437efc 100644
--- a/drivers/iio/proximity/as3935.c
+++ b/drivers/iio/proximity/as3935.c
@@ -213,7 +213,6 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private)
if (ret)
goto err_read;
val &= AS3935_DATA_MASK;
- val *= 1000;
iio_push_to_buffers_with_timestamp(indio_dev, &val, pf->timestamp);
err_read: