summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-09-08 10:20:58 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-10 22:23:23 +0000
commit8b37b17df0b8946763b1da984c64c51418a6b381 (patch)
treeb1057252d527317b1dc8f1040893b4e9edf2730a /include
parentb41956ce171f969721974a73d7b80a947610cbb7 (diff)
downloadchrome-ec-8b37b17df0b8946763b1da984c64c51418a6b381.tar.gz
driver: bmi: Merge list_activities in common code
Put list_activities in common code, as it is used by both BMI160 and BMI260 driver. Fixes cb3771973de ("Coachz: MotionSensor: Avoid redefine gesture function list_activites") Fixes fc298a0ada0 ("driver: bmi260: integrate body detection") BUG=b:195908820 BRANCH=trogdor TEST=buildall Change-Id: I05591954c825802502328c842b03e8934c497f08 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3150056 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/driver/accelgyro_bmi_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/driver/accelgyro_bmi_common.h b/include/driver/accelgyro_bmi_common.h
index c403999c5a..6e1ed122b3 100644
--- a/include/driver/accelgyro_bmi_common.h
+++ b/include/driver/accelgyro_bmi_common.h
@@ -313,4 +313,7 @@ int bmi_set_accel_offset(const struct motion_sensor_t *accel, intv3_t v);
int bmi_set_gyro_offset(const struct motion_sensor_t *gyro, intv3_t v,
int *val98_ptr);
+int bmi_list_activities(const struct motion_sensor_t *s,
+ uint32_t *enabled,
+ uint32_t *disabled);
#endif /* __CROS_EC_ACCELGYRO_BMI_COMMON_H */