diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-05-05 00:32:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-14 13:05:59 (GMT) |
commit | 716dd37398adf082a153e2362d7237d8fcb3616f (patch) | |
tree | c1ae82065e47658ee6a07da08cc66025ebc61eef /.get_maintainer.ignore | |
parent | bad3b49b01aaafc000f2ffe1302d86ca397491ed (diff) | |
download | linux-716dd37398adf082a153e2362d7237d8fcb3616f.tar.xz |
iio: proximity: as3935: fix iio_trigger_poll issue
commit 9122b54f266ddee09654fe3fbc503c1a60f4a01c upstream.
Using iio_trigger_poll() can oops when multiple interrupts
happen before the first is handled.
Use iio_trigger_poll_chained() instead and use the timestamp
when processed, since it will be in theory be 2 ms max latency.
Fixes: 24ddb0e4bba4 ("iio: Add AS3935 lightning sensor support")
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions