drivers: can: mcp2515: fix build break
Fix build break introduced in 03ab730347
:
/zephyr/drivers/can/can_mcp2515.c:871:55: error: 'const struct
mcp2515_config' has no member named 'int_pin'; did you mean 'int_gpio'?
871 | LOG_ERR("Unable to configure GPIO pin %u", dev_cfg->int_pin);
/zephyr/drivers/can/can_mcp2515.c:942:14: error: 'GPIO_DT_SPEC_INST_GET'
undeclared here (not in a function)
942 | .int_gpio = GPIO_DT_SPEC_INST_GET(0),
| ^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
This commit is contained in:
parent
ed3471aa5c
commit
eb7b3b66a2
1 changed files with 2 additions and 2 deletions
|
@ -868,7 +868,7 @@ static int mcp2515_init(const struct device *dev)
|
|||
}
|
||||
|
||||
if (gpio_pin_configure_dt(&dev_cfg->int_gpio, GPIO_INPUT)) {
|
||||
LOG_ERR("Unable to configure GPIO pin %u", dev_cfg->int_pin);
|
||||
LOG_ERR("Unable to configure interrupt GPIO");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -939,7 +939,7 @@ static struct mcp2515_data mcp2515_data_1 = {
|
|||
|
||||
static const struct mcp2515_config mcp2515_config_1 = {
|
||||
.bus = SPI_DT_SPEC_INST_GET(0, SPI_WORD_SET(8), 0),
|
||||
.int_gpio = GPIO_DT_SPEC_INST_GET(0),
|
||||
.int_gpio = GPIO_DT_SPEC_INST_GET(0, int_gpios),
|
||||
.int_thread_stack_size = CONFIG_CAN_MCP2515_INT_THREAD_STACK_SIZE,
|
||||
.int_thread_priority = CONFIG_CAN_MCP2515_INT_THREAD_PRIO,
|
||||
.tq_sjw = DT_INST_PROP(0, sjw),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue