summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/src/i2c.c')
-rw-r--r--zephyr/shim/src/i2c.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/zephyr/shim/src/i2c.c b/zephyr/shim/src/i2c.c
index c42e9e9e75..9a1b19b61f 100644
--- a/zephyr/shim/src/i2c.c
+++ b/zephyr/shim/src/i2c.c
@@ -19,17 +19,15 @@
#define I2C_CONFIG_GPIO(id, type) \
DT_ENUM_UPPER_TOKEN(DT_CHILD(DT_CHILD(id, config), type), enum_name)
-#define I2C_PORT_INIT(id) \
- COND_CODE_1(DT_NODE_EXISTS(DT_CHILD(id, config)), \
- ( \
- { \
- .name = DT_LABEL(id), \
- .port = I2C_PORT(id), \
- .kbps = DT_PROP(DT_CHILD(id, config), \
- frequency), \
- .scl = I2C_CONFIG_GPIO(id, scl), \
- .sda = I2C_CONFIG_GPIO(id, sda), \
- }, ), \
+#define I2C_PORT_INIT(id) \
+ COND_CODE_1(DT_NODE_EXISTS(DT_CHILD(id, config)), \
+ ( \
+ { \
+ .name = DT_LABEL(id), \
+ .port = I2C_PORT(id), \
+ .scl = I2C_CONFIG_GPIO(id, scl), \
+ .sda = I2C_CONFIG_GPIO(id, sda), \
+ }, ), \
())
/*
* Long term we will not need these, for now they're needed to get things to