misc/apds990x: Abandon ps/als state once
authorjli127 <jian.d.li@intel.com>
Thu, 22 Mar 2012 06:19:17 +0000 (14:19 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 23 Mar 2012 08:14:58 +0000 (01:14 -0700)
commit57a75a8bfd4e2a291a4143d7b5b955b887bab860
tree941dca32dfbafbdf4a61741869e361dc960e0773
parente33699afd55595bbe280c30e574b0838c3c1cabe
misc/apds990x: Abandon ps/als state once

BZ: 27931

PS sensor driver only reports sensor
data if new state is different from
old state. After disable/enable PS sensor
the old state becomes invalid. This patch
abandon ps old state and make driver
reporting data at every interrupt.

Change-Id: If4e402e01e1fe69354175f1180ec4e6e11a50d03
Signed-off-by: jli127 <jian.d.li@intel.com>
Reviewed-on: http://android.intel.com:8080/40106
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/misc/apds990x.c