Skip to content

Commit c18c5ca

Browse files
ananglcarlescufi
authored andcommitted
drivers: uart_nrfx_uart: Fix incorrect uses of DT_NODE_HAS_PROP
Values of boolean DT properties need to be checked with DT_PROP(), not DT_NODE_HAS_PROP(). Fix two such incorrect calls in the nRF UART driver. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 9777ba7 commit c18c5ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/serial/uart_nrfx_uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
#define BAUDRATE PROP(current_speed)
3434

3535
#ifdef CONFIG_PINCTRL
36-
#define DISABLE_RX HAS_PROP(disable_rx)
36+
#define DISABLE_RX PROP(disable_rx)
3737
#else
3838
#define DISABLE_RX !HAS_PROP(rx_pin)
3939
#endif /* CONFIG_PINCTRL */
40-
#define HW_FLOW_CONTROL_AVAILABLE HAS_PROP(hw_flow_control)
40+
#define HW_FLOW_CONTROL_AVAILABLE PROP(hw_flow_control)
4141

4242
#define IRQN DT_INST_IRQN(0)
4343
#define IRQ_PRIO DT_INST_IRQ(0, priority)

0 commit comments

Comments
 (0)