hwmon/lis3dh: prolong event report period with 6D interrupt
authorZhifeng Wang <zhifeng.wang@intel.com>
Mon, 27 Feb 2012 03:38:02 +0000 (11:38 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 29 Feb 2012 07:33:03 +0000 (23:33 -0800)
BZ: 25076

Prolong event report period when 6D interrupt occurs. This is necessary
to ensure the android framework could detect orientation change when
device is rotated very slowly.

Change-Id: Ie1d29b3d24edd458f8849a07a1ffacb47b7e8081
Signed-off-by: Zhifeng Wang <zhifeng.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/36671
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Cai, Stanley W <stanley.w.cai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hwmon/lis3dh_acc.c

index 9d96445..3fdcf4d 100644 (file)
@@ -66,8 +66,8 @@
 
 #define        G_MAX           16000
 
-#define LIS3DH_6D_REPORT_DELAY 100
-#define LIS3DH_6D_REPORT_CNT   10
+#define LIS3DH_6D_REPORT_DELAY 200
+#define LIS3DH_6D_REPORT_CNT   40
 
 #define SENSITIVITY_2G         1       /**     mg/LSB  */
 #define SENSITIVITY_4G         2       /**     mg/LSB  */