iio: proximity: as3935: move storm out of range check
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 27 Apr 2017 05:30:00 +0000 (22:30 -0700)
committerJonathan Cameron <jic23@kernel.org>
Thu, 27 Apr 2017 06:22:46 +0000 (07:22 +0100)
commitd532e5b2bc4724b3c493c1be58e3f1686c1e4fe7
treee26e39b0858db02b9199539f26a497eea79c90a0
parentc894acc7bf400d039bf740420b22f0b71b7fb504
iio: proximity: as3935: move storm out of range check

Move out of storm check to apply to IIO_CHAN_INFO_RAW so the reported
results are constant between the former and the IIO_CHAN_INFO_PROCESSED

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/proximity/as3935.c