diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2019-01-31 10:04:20 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-14 05:27:21 -0800 |
commit | f1fcc752c69ac041ec8dfd4d77f8d415f0112e4d (patch) | |
tree | a9bd1f25971ed0b113443aa236e23b10f3cf68bf /driver/accel_lis2dh.h | |
parent | 573b4bd9b49af15a57ca05f6bd515807a1d58424 (diff) | |
download | chrome-ec-f1fcc752c69ac041ec8dfd4d77f8d415f0112e4d.tar.gz |
driver: lis2dh: fix comments and include
Minor cleanup to lis2dh.
BUG=none
BRANCH=none
TEST=Compile
Change-Id: Ic34eaa1cb5807bc8df8694e2d06546d60d109a7a
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1449111
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'driver/accel_lis2dh.h')
-rw-r--r-- | driver/accel_lis2dh.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/driver/accel_lis2dh.h b/driver/accel_lis2dh.h index 7523404986..824127b90c 100644 --- a/driver/accel_lis2dh.h +++ b/driver/accel_lis2dh.h @@ -8,9 +8,12 @@ #ifndef __CROS_EC_ACCEL_LIS2DH_H #define __CROS_EC_ACCEL_LIS2DH_H +#include "driver/stm_mems_common.h" + #define LIS2DH_I2C_ADDR(__x) (__x << 1) -/* 7-bit address is 000110Xb. Where 'X' is determined +/* + * 7-bit address is 000110Xb. Where 'X' is determined * by the voltage on the ADDR pin */ #define LIS2DH_ADDR0 LIS2DH_I2C_ADDR(0x18) @@ -102,7 +105,8 @@ enum lis2dh_odr { /* FS reg value from Full Scale */ #define LIS2DH_FS_TO_REG(_fs) (__fls(_fs) - 1) -/* Sensor resolution in number of bits +/* + * Sensor resolution in number of bits * lis2dh has variable precision (8/10/12 bits) depending Power Mode * selected, here Only Normal Power mode supported (10 bits). * But for lis2de, it has only one 8bit resolution. |