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>