From c18c5cabf190496386dedceee39028f2c56e9c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20G=C5=82=C4=85bek?= Date: Thu, 17 Mar 2022 09:18:06 +0100 Subject: [PATCH] drivers: uart_nrfx_uart: Fix incorrect uses of DT_NODE_HAS_PROP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- drivers/serial/uart_nrfx_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/uart_nrfx_uart.c b/drivers/serial/uart_nrfx_uart.c index 409b11c1a75..127a1b69acd 100644 --- a/drivers/serial/uart_nrfx_uart.c +++ b/drivers/serial/uart_nrfx_uart.c @@ -33,11 +33,11 @@ #define BAUDRATE PROP(current_speed) #ifdef CONFIG_PINCTRL -#define DISABLE_RX HAS_PROP(disable_rx) +#define DISABLE_RX PROP(disable_rx) #else #define DISABLE_RX !HAS_PROP(rx_pin) #endif /* CONFIG_PINCTRL */ -#define HW_FLOW_CONTROL_AVAILABLE HAS_PROP(hw_flow_control) +#define HW_FLOW_CONTROL_AVAILABLE PROP(hw_flow_control) #define IRQN DT_INST_IRQN(0) #define IRQ_PRIO DT_INST_IRQ(0, priority)