We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7b4e6 commit 38e827dCopy full SHA for 38e827d
drivers/gpio/gpio_mcp230xx.c
@@ -85,13 +85,13 @@ static int mcp230xx_bus_is_ready(const struct device *dev)
85
static struct mcp23xxx_config mcp230xx_##inst##_config = { \
86
.config = { \
87
.port_pin_mask = \
88
- GPIO_PORT_PIN_MASK_FROM_DT_NODE(DT_DRV_INST(n)), \
+ GPIO_PORT_PIN_MASK_FROM_DT_INST(n), \
89
}, \
90
.bus = \
91
{ \
92
- .i2c = I2C_DT_SPEC_GET(DT_DRV_INST(n)) \
+ .i2c = I2C_DT_SPEC_INST_GET(n) \
93
94
- .ngpios = DT_PROP(DT_DRV_INST(n), ngpios), \
+ .ngpios = DT_INST_PROP(n, ngpios), \
95
.read_fn = mcp230xx_read_port_regs, \
96
.write_fn = mcp230xx_write_port_regs, \
97
.bus_fn = mcp230xx_bus_is_ready \
0 commit comments