dts: clean up some redundant DT checks
These are redundantly checking a node's status twice. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
7e0eed9235
commit
17b8667197
12 changed files with 20 additions and 41 deletions
|
@ -29,8 +29,7 @@
|
|||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(uart_stm32);
|
||||
|
||||
#define HAS_LPUART_1 (DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1)) && \
|
||||
DT_NODE_HAS_COMPAT_STATUS_OKAY(DT_NODELABEL(lpuart1), \
|
||||
#define HAS_LPUART_1 (DT_NODE_HAS_COMPAT_STATUS_OKAY(DT_NODELABEL(lpuart1), \
|
||||
st_stm32_lpuart))
|
||||
|
||||
/* convenience defines */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue