Skip to content

Commit e3d4c2c

Browse files
gmarullcarlescufi
authored andcommitted
drivers: serial: nrfx_uart: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 5350121 commit e3d4c2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/serial/uart_nrfx_uart.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ void uart_nrfx_isr(const struct device *uart)
820820

821821
static void rx_timeout(struct k_timer *timer)
822822
{
823-
rx_rdy_evt(DEVICE_DT_GET(DT_DRV_INST(0)));
823+
rx_rdy_evt(DEVICE_DT_INST_GET(0));
824824
}
825825

826826
#if HW_FLOW_CONTROL_AVAILABLE
@@ -837,7 +837,7 @@ static void tx_timeout(struct k_timer *timer)
837837
evt.data.tx.len = uart0_cb.tx_buffer_length;
838838
uart0_cb.tx_buffer_length = 0;
839839
uart0_cb.tx_counter = 0;
840-
user_callback(DEVICE_DT_GET(DT_DRV_INST(0)), &evt);
840+
user_callback(DEVICE_DT_INST_GET(0), &evt);
841841
}
842842
#endif
843843

@@ -1093,7 +1093,7 @@ static int uart_nrfx_init(const struct device *dev)
10931093
IRQ_CONNECT(IRQN,
10941094
IRQ_PRIO,
10951095
uart_nrfx_isr,
1096-
DEVICE_DT_GET(DT_DRV_INST(0)),
1096+
DEVICE_DT_INST_GET(0),
10971097
0);
10981098
irq_enable(IRQN);
10991099
#endif

0 commit comments

Comments
 (0)