diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-09-28 23:54:08 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-29 16:58:59 +0000 |
commit | 5c59fb8b6228f6d17ab0c335614e6564863ff7a5 (patch) | |
tree | 1f5bacff21f7f847991f45ada6509eb90651c9df | |
parent | 24937cec544935e50fa691c1187f2e4154cde95a (diff) | |
download | chrome-ec-5c59fb8b6228f6d17ab0c335614e6564863ff7a5.tar.gz |
driver: Remove unused function
When compiling with clang it warns that the function is unused:
driver/accelgyro_lsm6dsm.c:45:29: error: unused function 'get_fifo_type'
[-Werror,-Wunused-function]
static inline enum dev_fifo get_fifo_type(const struct motion_sensor_t
*s)
BRANCH=none
BUG=b:172020503
TEST=make CC=clang V=1 BOARD=arcada_ish
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ibc52e25a2f750e8da8335e7835475db7a5d42670
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3193275
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | driver/accelgyro_lsm6dsm.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/driver/accelgyro_lsm6dsm.c b/driver/accelgyro_lsm6dsm.c index 72bc4dea2e..8a83f72f82 100644 --- a/driver/accelgyro_lsm6dsm.c +++ b/driver/accelgyro_lsm6dsm.c @@ -37,22 +37,6 @@ static volatile uint32_t last_interrupt_timestamp; /** - * Gets the dev_fifo enum value for a given sensor. - * - * @param s Pointer to the sensor in question. - * @return the dev_fifo enum value corresponding to the sensor. - */ -static inline enum dev_fifo get_fifo_type(const struct motion_sensor_t *s) -{ - static enum dev_fifo map[] = { - FIFO_DEV_ACCEL, - FIFO_DEV_GYRO, - FIFO_DEV_MAG - }; - return map[s->type]; -} - -/** * Gets the sensor type associated with the dev_fifo enum. This type can be used * to get the sensor number by using it as an offset from the first sensor in * the lsm6dsm (the accelerometer). |