soc: arm: nordic_nrf: Convert to new DT_INST macros

Convert older DT_INST_ macro use the new include/devicetree.h
DT_INST macro APIs.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-15 06:32:53 -05:00 committed by Kumar Gala
commit 7b6796ee79
4 changed files with 4 additions and 6 deletions

View file

@ -17,8 +17,7 @@
#define DT_UART_0_NAME DT_NORDIC_NRF_UARTE_UART_0_LABEL
#define DT_UART_1_NAME DT_NORDIC_NRF_UARTE_UART_1_LABEL
#define DT_FLASH_DEV_NAME \
DT_NORDIC_NRF53_FLASH_CONTROLLER_FLASH_CONTROLLER_LABEL
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf53_flash_controller))
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
#define DT_GPIO_P1_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_1_LABEL