iio: proximity: as3935: remove triggered buffer processing
authorMatt Ranostay <mranostay@gmail.com>
Sun, 22 May 2016 03:01:02 +0000 (20:01 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 May 2016 19:53:53 +0000 (20:53 +0100)
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>
drivers/iio/proximity/as3935.c

index f0a0defb68a43f38c823153ef264c22964dcfd0e..6aed02437efc7aeca2fbf1a943d5f2736028d15b 100644 (file)
@@ -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: