From c98ec2ad3eeeca94f06c51eacddf468027dc7196 Mon Sep 17 00:00:00 2001 From: Ouss4 Date: Tue, 7 Jul 2020 23:25:58 +0100 Subject: [PATCH] drivers/sensors/mpu60x0.c: Correct comments. --- drivers/sensors/mpu60x0.c | 2 -- include/nuttx/sensors/mpu60x0.h | 11 +++++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/sensors/mpu60x0.c b/drivers/sensors/mpu60x0.c index 15be14e13d..e23bf3abc8 100644 --- a/drivers/sensors/mpu60x0.c +++ b/drivers/sensors/mpu60x0.c @@ -694,8 +694,6 @@ static void inline mpu_unlock(FAR struct mpu_dev_s *dev) static int mpu_reset(FAR struct mpu_dev_s *dev) { - /* We support only SPI right now. */ - #ifdef CONFIG_MPU60X0_SPI if (dev->config.spi == NULL) { diff --git a/include/nuttx/sensors/mpu60x0.h b/include/nuttx/sensors/mpu60x0.h index 0c0ae79da7..cd450921dc 100644 --- a/include/nuttx/sensors/mpu60x0.h +++ b/include/nuttx/sensors/mpu60x0.h @@ -91,7 +91,6 @@ struct i2c_master_s; * them to disable or enable the unused interface type without * changing their code. * - * Note, I2C support is unimplemented at present. */ struct mpu_config_s @@ -107,10 +106,14 @@ struct mpu_config_s FAR struct spi_dev_s *spi; int spi_devid; #else - /* For users on I2C. (Unimplemented.) */ + /* For users on I2C. + * + * i2c : the I2C master device + * addr : the I2C address. + */ - FAR struct i2c_master_s *i2c; - int addr; + FAR struct i2c_master_s *i2c; + int addr; #endif };