diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2020-10-20 22:40:16 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-06 01:43:22 +0000 |
commit | d131be135e9403df05235fb57a91be1fad56326d (patch) | |
tree | 19f1b66e0d1b084abb86f46711c6da9d70bb5ad6 /include/accelgyro.h | |
parent | f3296f98e3921394a6b0db8683b86b0603075d1f (diff) | |
download | chrome-ec-d131be135e9403df05235fb57a91be1fad56326d.tar.gz |
common: motion: add IF_ENABLED()
Split some defines when necessary, add IF_ENABLED to
common/motion_sense.c.
Find small setting errors in some boards along the way.
BUG=chromium:1140877
BRANCH=none
TEST=buildall
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I77ff528a16809088a986a2cc707aff8ae7df3906
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2488939
Reviewed-by: Ching-Kang Yen <chingkang@chromium.org>
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r-- | include/accelgyro.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h index e1226bc3e4..c85922f3ef 100644 --- a/include/accelgyro.h +++ b/include/accelgyro.h @@ -123,7 +123,6 @@ struct accelgyro_drv { */ int (*perform_calib)(const struct motion_sensor_t *s, int enable); -#ifdef CONFIG_ACCEL_INTERRUPTS /** * handler for interrupts triggered by the sensor: it runs in task and * process the events that triggered an interrupt. @@ -134,8 +133,6 @@ struct accelgyro_drv { * when no events have been processed. */ int (*irq_handler)(struct motion_sensor_t *s, uint32_t *event); -#endif -#ifdef CONFIG_GESTURE_DETECTION /** * handler for setting/getting activity information. * Manage the high level activity detection of the chip. @@ -158,13 +155,10 @@ struct accelgyro_drv { uint32_t *enabled, uint32_t *disabled); -#endif -#ifdef CONFIG_BODY_DETECTION /** * Get the root mean square of current noise (ug/mdps) in the sensor. */ int (*get_rms_noise)(const struct motion_sensor_t *s); -#endif }; /* Index values for rgb_calibration_t.coeff array */ |