diff options
author | Yuval Peress <peress@chromium.org> | 2019-03-15 13:35:39 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-02 17:47:44 +0000 |
commit | 6fb9ebfc384a5c835b266a32634dd0a4ffe5027f (patch) | |
tree | 7d7e4d577381a9b1001466be33f962d11b7e46a7 /include | |
parent | 68f9c147e8c94706da5c5e263e32164e0e152d2a (diff) | |
download | chrome-ec-6fb9ebfc384a5c835b266a32634dd0a4ffe5027f.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>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1719551
Reviewed-by: Edward Hill <ecgh@chromium.org>
Tested-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include')
-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 0e6f7aa342..efcd66fa00 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; |