drivers/sensors/mpu60x0.c: Correct comments.
This commit is contained in:
parent
a5a3e54be0
commit
c98ec2ad3e
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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,7 +106,11 @@ 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;
|
||||||
|
|
Loading…
Reference in New Issue