drivers: gpio: use new ngpios macros for cases embedded in macros
Fixup cases of GPIO_PORT_PIN_MASK_FROM_NGPIOS(DT_INST_PROP(n, ngpios)) to use GPIO_PORT_PIN_MASK_FROM_DT_INST(n) instead. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
9f7cab0623
commit
4e553f31fa
6 changed files with 6 additions and 13 deletions
|
@ -491,7 +491,7 @@ static int gpio_pca95xx_init(struct device *dev)
|
|||
#define GPIO_PCA95XX_DEVICE_INSTANCE(inst) \
|
||||
static const struct gpio_pca95xx_config gpio_pca95xx_##inst##_cfg = { \
|
||||
.common = { \
|
||||
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_NGPIOS(DT_INST_PROP(inst, ngpios)), \
|
||||
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(inst), \
|
||||
}, \
|
||||
.i2c_master_dev_name = DT_INST_BUS_LABEL(inst), \
|
||||
.i2c_slave_addr = DT_INST_REG_ADDR(inst), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue