ltr502als.c: Proximity status check after mode switching in early suspend
authorLeo Yan <leo.yan@intel.com>
Mon, 19 Dec 2011 07:23:10 +0000 (15:23 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 21 Dec 2011 06:22:39 +0000 (22:22 -0800)
commita47dc3129b7b12797cea07ffe107709376e6a1ab
treea99131095546dfc49f42ddc27ed7a35a4da2f2e4
parent2e152df1a3e79f22e5939602fc58ea029d2a1e3e
ltr502als.c: Proximity status check after mode switching in early suspend

BZ: 18010

If proximity status is changed during mode switch, there
may be no interrupt occurred, so we need to check the data
register after mode switching in the early suspend handler.

Change-Id: If0e9948568ce8320ae2efbee3fb4cd0343395b2d
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/28059
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