summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2010-08-12 15:08:30 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2010-08-16 22:51:22 -0700
commit284c5db914749b90da35a827d2ac0e343de7e9a8 (patch)
tree7b899fb16cec2adb1089bf8c910b44a526c3c090
parent360578084a43ba8c8326be91800c7d4a165cfd8e (diff)
tegra accelerometer: removing threshold setting
As Threshold settings are done in a common place for different accelerometers, removing it. Need to add threshold settings to individual ODM driver based on the need. Bug 721469 Change-Id: I6fe20c4e501208dde9fcf47ac3e31bdf81343efc Reviewed-on: http://git-master/r/5082 Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r--drivers/input/misc/tegra_odm_accel.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/input/misc/tegra_odm_accel.c b/drivers/input/misc/tegra_odm_accel.c
index 8af906d9ba77..f08cc81b665e 100644
--- a/drivers/input/misc/tegra_odm_accel.c
+++ b/drivers/input/misc/tegra_odm_accel.c
@@ -103,47 +103,8 @@ NvBool open_def_odm_accl(void)
err = NvOdmAccelOpen(&(accel_dev->hOdmAcr));
if (!err) {
pr_err("open_def_odm_accl: NvOdmAccelOpen failed\n");
- return err;
}
- err = NvOdmAccelSetIntForceThreshold(accel_dev->hOdmAcr,
- NvOdmAccelInt_MotionThreshold, 0, 900);
- if (!err) {
- pr_err("open_def_odm_accl: Set Motion Thresold failed\n");
- return err;
- }
-
- err = NvOdmAccelSetIntEnable(accel_dev->hOdmAcr,
- NvOdmAccelInt_MotionThreshold, NvOdmAccelAxis_All, 0, NV_TRUE);
-
- if (!err) {
- pr_err("open_def_odm_accl: Enable Motion Thresold failed\n");
- return err;
- }
-
- err = NvOdmAccelSetIntEnable(accel_dev->hOdmAcr,
- NvOdmAccelInt_TapThreshold, NvOdmAccelAxis_All, 0, NV_TRUE);
-
- if (!err) {
- pr_err("open_def_odm_accl: Enable Tap Threshold failed\n");
- return err;
- }
-
- err = NvOdmAccelSetIntForceThreshold(accel_dev->hOdmAcr,
- NvOdmAccelInt_TapThreshold, 0, 120);
-
- if (!err) {
- pr_err("open_def_odm_accl: Set Tap Threshold failed\n");
- return err;
- }
-
- err = NvOdmAccelSetIntTimeThreshold(accel_dev->hOdmAcr,
- NvOdmAccelInt_TapThreshold, 0, 2);
-
- if (!err) {
- pr_err("open_def_odm_accl: SetIntTimeThreshold failed\n");
- return err;
- }
return err;
}