summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-06-02 09:41:58 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-03 19:46:19 +0000
commitc70fb0f9ebeb175671a0b662048ad3a6531fe91f (patch)
tree1b760277d4ebe5b4c6bf96565eac24a82970501c /util
parentb88495f7186a70e65e97923b1a13b5058f09ed70 (diff)
downloadchrome-ec-c70fb0f9ebeb175671a0b662048ad3a6531fe91f.tar.gz
motion: Add MOTIONSENSE_CMD_DATA: retrieve single sensor data
MOTIONSENSE_CMD_DATA return the value of a sinlge sensor. BRANCH=none BUG=chrome-os-partner:39900 TEST=On Smaug, using the new cros-ec-sensors driver, check sensors data using iio sysfs interface. Change-Id: I618ff050e0c7b4247ac56cfb0ca25e351270e1d6 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/274824 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/ectool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 9470600029..c2836df3c9 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -3219,6 +3219,7 @@ static const struct {
MS_SIZES(sensor_odr),
MS_SIZES(sensor_range),
MS_SIZES(kb_wake_angle),
+ MS_SIZES(data),
};
BUILD_ASSERT(ARRAY_SIZE(ms_command_sizes) == MOTIONSENSE_NUM_CMDS);
#undef MS_SIZES