diff options
author | Matt Ranostay <mranostay@gmail.com> | 2016-05-21 20:01:02 -0700 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2016-08-19 23:08:42 -0400 |
commit | 9db892c0c7d71779bafcac2e26121357519fc615 (patch) | |
tree | 22ad7039d9834266d4b75bd03d38c901025737a6 /drivers/iio | |
parent | e2a296e94cabe8f39420bec1936d9ef146c3dcee (diff) |
iio: proximity: as3935: remove triggered buffer processing
[ Upstream commit 7d0643634ea567969bf3f3ed6193a9d6fc75653b ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/proximity/as3935.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c index eed2fb0813fd..0bced4a980e3 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: |