summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input')
-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;
}