You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/20 13:35:09 UTC

[incubator-nuttx] 17/26: Fix sensors/mpu60x0.c:650:23: error: unused function '__mpu_read_who_am_i'

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit a4eeeb23de0b1a4f8ad1632faa562215f27d70fd
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Nov 19 12:57:41 2022 +0800

    Fix sensors/mpu60x0.c:650:23: error: unused function '__mpu_read_who_am_i'
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 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)