ltr502als.c: Modify the way of ALS first data reporting
authorLeo Yan <leo.yan@intel.com>
Mon, 26 Dec 2011 10:07:41 +0000 (18:07 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 6 Jan 2012 01:50:31 +0000 (17:50 -0800)
commit665a38f338c6b1c98cd8081983d538d1a16b3540
treee04746d43bdb726f5e50685c289dca69d0063fde
parent8466fa3282c3c9788799e11e9110e3459697fdec
ltr502als.c: Modify the way of ALS first data reporting

BZ: 17876 18551

1. Previously, when ALS is enabled, it will report zero before the first
interrupt occurs, this may cause incorrect behavior of LED light.  Now
ALS doesn't report any data until the first interrupt occurs.
2. In order to speed up the interrupt triggering, ADC sample integration
circle of ALS is changed to 1.

Signed-off-by: Leo Yan <leo.yan@intel.com>
Change-Id: I25a2d16e9db09cc44a299b127feff8a3f53d4430
Reviewed-on: http://android.intel.com:8080/29959
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hwmon/ltr502als.c