[PATCH 3/3] fix-lis302dl-dont-reset-hpf-each-time.patch

Andy Green andy at openmoko.com
Tue Feb 3 10:42:54 CET 2009


We shouldn't be resetting the highpass filter every sample.

It should be disabled if we don't use it or allowed to
work across multiple samples if we do.

Was this hiding some other problem?

Signed-off-by: Andy Green <andy at openmoko.com>
---

 drivers/input/misc/lis302dl.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/input/misc/lis302dl.c b/drivers/input/misc/lis302dl.c
index 2e3d92d..bc73e97 100644
--- a/drivers/input/misc/lis302dl.c
+++ b/drivers/input/misc/lis302dl.c
@@ -249,10 +249,6 @@ static void lis302dl_bitbang_read_sample(struct lis302dl_info *lis)
 
 		input_sync(lis->input_dev);
 	}
-
-	/* Reset the HP filter */
-	__reg_read(lis,	LIS302DL_REG_HP_FILTER_RESET);
-	__reg_read(lis,	LIS302DL_REG_FF_WU_SRC_1);
 }
 
 static irqreturn_t lis302dl_interrupt(int irq, void *_lis)




More information about the openmoko-kernel mailing list