drivers: gpio: pca6416: fix dt get id
It should use "n" but not use "inst". Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
parent
1ede94dda3
commit
255e7f960b
@ -472,7 +472,7 @@ static DEVICE_API(gpio, api_table) = {
|
||||
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(n), \
|
||||
}, \
|
||||
.interrupt_enabled = DT_INST_NODE_HAS_PROP(n, interrupt_gpios), \
|
||||
.gpio_int = GPIO_DT_SPEC_INST_GET_OR(inst, interrupt_gpios, {0}), \
|
||||
.gpio_int = GPIO_DT_SPEC_INST_GET_OR(n, interrupt_gpios, {0}), \
|
||||
}; \
|
||||
\
|
||||
static struct pca6416_drv_data pca6416_drvdata_##n = { \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user