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, 19 Jul 2015 10:48:12 +0000 (11:48 +0100)
commit0f16fc8bb38156c842f6976ddbdf4f266e893a1b
tree3267c7b2c8e772fac340c0c4d4cd653308c3d834
parent5646e856db1e3e2b260c6ba732524e5a886770d5
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