This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch releases/13.0
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/13.0 by this push:
new d566ce17f57 drivers/i2c: I2C_SLAVE_DRIVER depends on I2C_SLAVE
d566ce17f57 is described below
commit d566ce17f57e7289192dfae04c78f7723b6e9b52
Author: raiden00pl <[email protected]>
AuthorDate: Tue Jun 16 17:44:32 2026 +0200
drivers/i2c: I2C_SLAVE_DRIVER depends on I2C_SLAVE
I2C_SLAVE_DRIVER depends on I2C_SLAVE
Signed-off-by: raiden00pl <[email protected]>
---
drivers/i2c/Kconfig | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index a68f64c1584..fe71e389b3b 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -29,30 +29,31 @@ menu "I2C Slave Support"
config I2C_SLAVE_DRIVER
bool "I2C Slave driver"
default n
+ depends on I2C_SLAVE
---help---
Enable I2C Slave driver
+if I2C_SLAVE_DRIVER
+
config I2C_SLAVE_READBUFSIZE
int "I2C Slave driver read buffer size"
default 32
- depends on I2C_SLAVE_DRIVER
---help---
I2C Slave read buffer size
config I2C_SLAVE_WRITEBUFSIZE
int "I2C Slave driver write buffer size"
default 32
- depends on I2C_SLAVE_DRIVER
---help---
I2C Slave write buffer size
config I2C_SLAVE_NPOLLWAITERS
int "Number of i2c slave poll waiters"
default 1
- depends on I2C_SLAVE_DRIVER
---help---
Number of waiters to i2c slave poll
+endif # I2C_SLAVE_DRIVER
endmenu # I2C Slave Support
config I2C_POLLED