iio: light: STK3310: un-invert proximity values
authorTiberiu Breana <tiberiu.a.breana@intel.com>
Wed, 1 Jul 2015 12:32:00 +0000 (15:32 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 5 Jul 2015 11:17:16 +0000 (12:17 +0100)
commit0484edadfae3202ab165a2bff4936b80bcf1bebf
treeb6cc4d797d4941bd6293fa0e6e40a12580f8f0c8
parent6aaf0da8728c55ff627619f933ed161cc89057c6
iio: light: STK3310: un-invert proximity values

In accordance with the recent proximity ABI changes,
STK3310's proximity readings should be un-inversed
in order to return low values for far-away objects
and high values for close ones.

As consequences of this change, iio event directions
have been switched and maximum proximity sensor
reference values have also been adjusted in accordance
with the real readings.

Signed-off-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/stk3310.c