iio: proximity: as3935: correct IIO_CHAN_INFO_RAW output
authorMatt Ranostay <mranostay@gmail.com>
Sun, 22 May 2016 03:01:01 +0000 (20:01 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 May 2016 19:53:36 +0000 (20:53 +0100)
commit5138806f16c74c7cb8ac3e408a859c79eb7c9567
tree4d5b963367f295ad553c5537df910ce30477632c
parent14f2461b822dffb116256ee9155f7eca96064f7a
iio: proximity: as3935: correct IIO_CHAN_INFO_RAW output

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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935
drivers/iio/proximity/as3935.c