diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-08-28 13:57:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-30 03:58:29 -0700 |
commit | b52f9b8ea614804e5e198f00cc24a5084e14470e (patch) | |
tree | b31455b2a61a166ad13efc9394eb6b5ca9d958c0 /builtin | |
parent | 09136dea764dbe482392c29b3c8d1763149df3e6 (diff) | |
download | chrome-ec-b52f9b8ea614804e5e198f00cc24a5084e14470e.tar.gz |
sensors: Support device with only one accelerometer
LPC area for sensors support 3 sensors:
up to 2 accelerometers and 1 gyro.
If only 1 accelerometer is present, only the first accelerometer slot is
populated.
If there is no gyro, the gyro slot is not populated.
Add tests and remove assumption in the code to be sure the rules above
are enforced.
BRANCH=none
BUG=b:64232053
TEST=compile, check eve is still working.
On soraka:
ectool motionsense odr 2 10000
ectool motionsense
output matches:
grep . /sys/bus/iio/devices/*/in_*_raw
Change-Id: Ifd791a6fa89d94bf91ad1a65b8987f69bada801e
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/639319
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions