hwmon/accel: enable initial event report for 6D interrupt mode
authorZhifeng Wang <zhifeng.wang@intel.com>
Fri, 17 Feb 2012 05:05:03 +0000 (13:05 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 21 Feb 2012 11:33:22 +0000 (03:33 -0800)
commit14e7ff2102f956b0bc9cd2097ce950feff97f70e
tree5acfd4def339b77a7ed098b605b8bdd80d4b7263
parent946b9f1a47b9f08934cc6694d98981dda1efc1a6
hwmon/accel: enable initial event report for 6D interrupt mode

BZ: 23830

When accelerometer is running in 6D interrupt mode, it doesn't report
events if no orientation change. If device first enters sleep mode then
resume, user space app won't receive accelerometer events, and can't
calculate its orientation. This patch forces the accelerometer to report
events when it is enabled so that user space could calculate orientation
correctly.

Change-Id: Ib7738dd87c44d03d45ef7b28fa9ee607d04995a8
Signed-off-by: Zhifeng Wang <zhifeng.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/35684
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hwmon/lis3dh_acc.c