]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ce5483e49f6d75bea16d817400bfefc6bd96814
tree3267c7b2c8e772fac340c0c4d4cd653308c3d834
parent1074825b643dbf0eda3afc66237d6ab3dcc28916
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