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

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

commit 6114c0b948d4ef379f72960b06a851aa9bc5942c
Author: Shoukui Zhang <[email protected]>
AuthorDate: Fri Oct 27 19:14:34 2023 +0800

    i2c: Remove useless restrictions
    
    Signed-off-by: Shoukui Zhang <[email protected]>
---
 drivers/i2c/i2c_driver.c | 3 ---
 drivers/i2c/pca9540bdp.c | 3 ---
 drivers/i2c/tca9548a.c   | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/drivers/i2c/i2c_driver.c b/drivers/i2c/i2c_driver.c
index 8e35deb98b..06e7a99ee5 100644
--- a/drivers/i2c/i2c_driver.c
+++ b/drivers/i2c/i2c_driver.c
@@ -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 */
diff --git a/drivers/i2c/pca9540bdp.c b/drivers/i2c/pca9540bdp.c
index a83c318279..321635c204 100644
--- a/drivers/i2c/pca9540bdp.c
+++ b/drivers/i2c/pca9540bdp.c
@@ -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 */
diff --git a/drivers/i2c/tca9548a.c b/drivers/i2c/tca9548a.c
index ae2ddfa758..e4ad72228a 100644
--- a/drivers/i2c/tca9548a.c
+++ b/drivers/i2c/tca9548a.c
@@ -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 */

Reply via email to