]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
staging:iio:light:ltr659: Add detect threshold
authorwahsu <wahsu@nvidia.com>
Thu, 10 Apr 2014 09:14:09 +0000 (17:14 +0800)
committerTony Ly <tly@nvidia.com>
Wed, 16 Apr 2014 22:01:13 +0000 (15:01 -0700)
commit64f47916a5a7ba28c821e4531e9a9872bf9b3c2c
tree38513baa3d6768b74a68915c8ef953b2f10d2387
parentf07402d603a95cb93c2f9a3f2f190519b2f8cb6b
staging:iio:light:ltr659: Add detect threshold

Proximity value changes since the different material on cover that affects IR
emit/receive. To generate threshold value, we move hand to 1cm distance from
the sensor, then read proximity value many times on physical platform to get
average value. This value is stored in DT, and export in the driver. HAL can
refer this value to judge if object is near/far from the sensor by reading
proximity value.

bug 1496946

Change-Id: I2d48c372f28c771cd77c94eb6002edb35b734db5
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/395159
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Documentation/devicetree/bindings/staging/iio/light/ltr659-ps.txt
drivers/staging/iio/light/ltr558als.c