From a4eeeb23de0b1a4f8ad1632faa562215f27d70fd Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 19 Nov 2022 12:57:41 +0800 Subject: [PATCH] Fix sensors/mpu60x0.c:650:23: error: unused function '__mpu_read_who_am_i' Signed-off-by: Xiang Xiao --- drivers/sensors/mpu60x0.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/sensors/mpu60x0.c b/drivers/sensors/mpu60x0.c index a91d55cea2..ff2b45a180 100644 --- a/drivers/sensors/mpu60x0.c +++ b/drivers/sensors/mpu60x0.c @@ -645,15 +645,6 @@ static inline int __mpu_write_config(FAR struct mpu_dev_s *dev, return __mpu_write_reg(dev, CONFIG, &val, sizeof(val)); } -/* WHO_AM_I (0x75) : read-only, always returns 0x68 for mpu60x0 */ - -static inline uint8_t __mpu_read_who_am_i(FAR struct mpu_dev_s *dev) -{ - uint8_t val = 0xff; - __mpu_read_reg(dev, WHO_AM_I, &val, sizeof(val)); - return val; -} - /* Resets the mpu60x0, sets it to a default configuration. */ static int mpu_reset(FAR struct mpu_dev_s *dev)