diff options
author | Yuval Peress <peress@chromium.org> | 2019-03-15 13:35:39 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-23 10:16:29 -0700 |
commit | e166fa21167e0acb79a172fd44a9f4ac410a5b27 (patch) | |
tree | d9079d9e3a45aea52e271ac4fc6c56b829865ea3 /include/motion_sense.h | |
parent | deee174f01c6272617321ffa9f2bcad50e255447 (diff) | |
download | chrome-ec-e166fa21167e0acb79a172fd44a9f4ac410a5b27.tar.gz |
driver: lis2mdl: add standalone support
BRANCH=None
BUG=b:128619310
TEST=Created new console commands to directly trigger init, read, and
set_data_rate for the sensor. Manually verified behavior and register
values from the magnetometer using ISH console.
Change-Id: Ie162827f596056ee4cfd96be5c457e08708a9b9b
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1534339
Commit-Ready: Jett Rink <jettrink@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r-- | include/motion_sense.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index 65512c733b..9e55a2f255 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -115,6 +115,7 @@ struct motion_sensor_t { enum motionsensor_type type; enum motionsensor_location location; const struct accelgyro_drv *drv; + /* One mutex per physical chip. */ struct mutex *mutex; void *drv_data; |