iio: proximity: as3935: correct IIO_CHAN_INFO_RAW output

commit 5138806f16 upstream.

IIO_CHAN_INFO_RAW was returning processed data which was incorrect.
This also adds the IIO_CHAN_INFO_SCALE value to convert to a processed value.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Matt Ranostay 2016-05-21 20:01:01 -07:00 • committed by Greg Kroah-Hartman
commit 97eabb321a
2 changed files with 9 additions and 3 deletions