diff options
Diffstat (limited to 'zephyr/shim/src/i2c.c')
-rw-r--r-- | zephyr/shim/src/i2c.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/zephyr/shim/src/i2c.c b/zephyr/shim/src/i2c.c index d893745d64..4a354b9dc9 100644 --- a/zephyr/shim/src/i2c.c +++ b/zephyr/shim/src/i2c.c @@ -36,11 +36,12 @@ * Since all the ports will eventually be handled by device tree. This will * be removed at that point. */ -const struct i2c_port_t i2c_ports[] = { DT_FOREACH_CHILD(NAMED_I2C_PORTS_NODE, - I2C_PORT_INIT) }; +const struct i2c_port_t i2c_ports[] = { DT_FOREACH_CHILD_STATUS_OKAY( + NAMED_I2C_PORTS_NODE, I2C_PORT_INIT) }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); -static const int i2c_remote_ports[I2C_PORT_COUNT] = { DT_FOREACH_CHILD( - NAMED_I2C_PORTS_NODE, INIT_REMOTE_PORTS) }; +static const int i2c_remote_ports[I2C_PORT_COUNT] = { + DT_FOREACH_CHILD_STATUS_OKAY(NAMED_I2C_PORTS_NODE, INIT_REMOTE_PORTS) +}; static const struct device *i2c_devices[I2C_PORT_COUNT] = { I2C_FOREACH_PORT( INIT_DEV_BINDING) }; |