Skip to content

Commit 56c2c1f

Browse files
gmarullcarlescufi
authored andcommitted
drivers: gpio: mcp23sxx: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 38e827d commit 56c2c1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpio/gpio_mcp23sxx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ static int mcp23sxx_bus_is_ready(const struct device *dev)
122122
}; \
123123
static struct mcp23xxx_config mcp23sxx_##inst##_config = { \
124124
.config = { \
125-
.port_pin_mask = \
126-
GPIO_PORT_PIN_MASK_FROM_DT_NODE(DT_DRV_INST(n)), \
125+
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(n), \
127126
}, \
128127
.bus = { \
129128
.spi = SPI_DT_SPEC_INST_GET(n, \

0 commit comments

Comments
 (0)