devicetree: DT_NODE_HAS_COMPAT_STATUS_OKAY -> DT_NODE_HAS_COMPAT_STATUS
Swap this out and make the status a parameter. Leave a couple of cases of DT_NODE_HAS_COMPAT(). Signed-off-by: Kumar Gala <kumar.gala@linaro.org> Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
6f35d3bd16
commit
c2135f8721
17 changed files with 33 additions and 30 deletions
|
@ -29,8 +29,8 @@
|
|||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(uart_stm32);
|
||||
|
||||
#define HAS_LPUART_1 (DT_NODE_HAS_COMPAT_STATUS_OKAY(DT_NODELABEL(lpuart1), \
|
||||
st_stm32_lpuart))
|
||||
#define HAS_LPUART_1 (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(lpuart1), \
|
||||
st_stm32_lpuart, okay))
|
||||
|
||||
/* convenience defines */
|
||||
#define DEV_CFG(dev) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue