summaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@chromium.org>2017-04-25 19:09:03 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-05-18 21:05:23 -0700
commit9a0d0aa70d483be79c71a459dfd5f5e89da2638d (patch)
tree5e61d14a77ec938ce1508dbc61a271e0dfb15ee0 /include/util.h
parentd7eefeffb927cfd311d40c00ce817937eab4cb61 (diff)
downloadchrome-ec-9a0d0aa70d483be79c71a459dfd5f5e89da2638d.tar.gz
common: sensors: add extra sensor attributes
Adds min_frequency and max_frequency to struct motion_sensor_t. New attributes min_frequency and max_frequency are now returned in ectool's MOTIONSENSE_CMD_INFO response. Incremented ectool's MOTIONSENSE_CMD_INFO version to version 3. Add constants for MIN_FREQUENCY and MAX_FREQUENCY to each sensor's header file. BRANCH=none BUG=chromium:615059 TEST=build/boot and verify MOTIONSENSE_CMD_INFO response on kevin, make buildall -j passes. Change-Id: I66db9715c122ef6bb4665ad5d086a9ecc9c7c93a Signed-off-by: Nick Vaccaro <nvaccaro@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/482703 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/util.h b/include/util.h
index 5b6b554854..a2395674e9 100644
--- a/include/util.h
+++ b/include/util.h
@@ -49,9 +49,6 @@
/* True of x is a power of two */
#define POWER_OF_TWO(x) (x && !(x & (x - 1)))
-/* find the most significant bit. Not defined in n == 0. */
-#define __fls(n) (31 - __builtin_clz(n))
-
/*
* macros for integer division with various rounding variants
* default integer division rounds down.