i2c: Remove useless restrictions
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
This commit is contained in:
parent
2bf13ffbb0
commit
6114c0b948
@ -37,8 +37,6 @@
|
||||
#include <nuttx/i2c/i2c_master.h>
|
||||
#include <nuttx/mutex.h>
|
||||
|
||||
#ifdef CONFIG_I2C_DRIVER
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@ -408,4 +406,3 @@ int i2c_register(FAR struct i2c_master_s *i2c, int bus)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_I2C_DRIVER */
|
||||
|
@ -36,8 +36,6 @@
|
||||
#include "pca9540bdp.h"
|
||||
#include <nuttx/i2c/pca9540bdp.h>
|
||||
|
||||
#ifdef CONFIG_I2CMULTIPLEXER_PCA9540BDP
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
****************************************************************************/
|
||||
@ -299,4 +297,3 @@ FAR struct pca9540bdp_dev_s *
|
||||
return priv;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_I2CMULTIPLEXER_PCA9540BDP */
|
||||
|
@ -36,8 +36,6 @@
|
||||
#include <nuttx/i2c/i2c_master.h>
|
||||
#include <nuttx/i2c/tca9548a.h>
|
||||
|
||||
#ifdef CONFIG_I2CMULTIPLEXER_TCA9548A
|
||||
|
||||
#ifndef CONFIG_TCA9548A_I2C_FREQUENCY
|
||||
# define CONFIG_TCA9548A_I2C_FREQUENCY 400000
|
||||
#endif
|
||||
@ -409,4 +407,3 @@ FAR struct tca9548a_dev_s *
|
||||
return priv;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_I2CMULTIPLEXER_TCA9548A */
|
||||
|
Loading…
Reference in New Issue
Block a user