Skip to content

Commit 6d8fe6e

Browse files
sylvioalvesgalak
authored andcommitted
drivers: gpio: esp32: fix DT device macro
ESP32 build fails due to missing underline. Signed-off-by: Sylvio Alves <[email protected]>
1 parent fe516b9 commit 6d8fe6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_esp32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static struct gpio_esp32_data gpio_1_data = { /* 32..39 */
335335
static struct gpio_driver_config gpio_##_id##_cfg = { \
336336
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(_id), \
337337
}; \
338-
DEVICE_DT_INST_DEFINE(id, \
338+
DEVICE_DT_INST_DEFINE(_id, \
339339
gpio_esp32_init, \
340340
device_pm_control_nop, \
341341
&gpio_##_id##_data, &gpio_##_id##_cfg, \

0 commit comments

Comments
 (0)