diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-08-25 22:58:41 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-08-29 01:34:15 -0700 |
commit | 32867104da45ae38e37163ba6d04f847bc15e6bc (patch) | |
tree | e33a7142343d43eeeabaed6a097304459cde4a83 /common/gesture.c | |
parent | 4e7e1bb796190e658ea2de8d4e391efa59b0d643 (diff) | |
download | chrome-ec-32867104da45ae38e37163ba6d04f847bc15e6bc.tar.gz |
samus: Use new config, fix gesture
Use new config table.
Move ODR setting in motion sense, fix variable names.
BRANCH=samus
BUG=chromium:513458
TEST=Test accelerator and double tap on Samus
Change-Id: I341add11a18de8e4cc97c57da29f9114bd2014cf
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/295638
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common/gesture.c')
-rw-r--r-- | common/gesture.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/common/gesture.c b/common/gesture.c index 51a77ce0ab..b1858ba311 100644 --- a/common/gesture.c +++ b/common/gesture.c @@ -22,12 +22,6 @@ #define CPRINTS(format, args...) cprints(CC_GESTURE, format, ## args) #define CPRINTF(format, args...) cprintf(CC_GESTURE, format, ## args) -/* Output datarate for tap sensor (in milli-Hz) */ -/* - * Note: lsm6ds0 accel needs twice the expected data rate in order to guarantee - * that we have a new data sample every reading. - */ -#define TAP_ODR (2 * (1000000 / CONFIG_GESTURE_SAMPLING_INTERVAL_MS)) /* * Double tap detection parameters @@ -287,13 +281,6 @@ DECLARE_HOOK(HOOK_CHIPSET_RESUME, gesture_chipset_resume, static void gesture_chipset_suspend(void) { /* - * Set ODR to desired value - * We assume EC rate set correctly: it works because the sensor used - * is never offlined/suspened. - */ - sensor->drv->set_data_rate(sensor, TAP_ODR, 1); - - /* * Clear tap init and history initialized so that we have to * record a whole new set of data, and enable tap detection */ |