drivers/sensors/mpu60x0.c: Correct comments.

This commit is contained in:
Ouss4 2020-07-07 23:25:58 +01:00 committed by Alan Carvalho de Assis
parent a5a3e54be0
commit c98ec2ad3e
2 changed files with 7 additions and 6 deletions

View File

@ -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) static int mpu_reset(FAR struct mpu_dev_s *dev)
{ {
/* We support only SPI right now. */
#ifdef CONFIG_MPU60X0_SPI #ifdef CONFIG_MPU60X0_SPI
if (dev->config.spi == NULL) if (dev->config.spi == NULL)
{ {

View File

@ -91,7 +91,6 @@ struct i2c_master_s;
* them to disable or enable the unused interface type without * them to disable or enable the unused interface type without
* changing their code. * changing their code.
* *
* Note, I2C support is unimplemented at present.
*/ */
struct mpu_config_s struct mpu_config_s
@ -107,10 +106,14 @@ struct mpu_config_s
FAR struct spi_dev_s *spi; FAR struct spi_dev_s *spi;
int spi_devid; int spi_devid;
#else #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; FAR struct i2c_master_s *i2c;
int addr; int addr;
#endif #endif
}; };