From 12298205040de64107b8fdc47b417d7e47fee6bc Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Tue, 24 Mar 2020 16:56:01 -0500 Subject: [PATCH] soc: esp32: 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 --- soc/xtensa/esp32/dts_fixup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/xtensa/esp32/dts_fixup.h b/soc/xtensa/esp32/dts_fixup.h index 054657d9e71..cc268060dc4 100644 --- a/soc/xtensa/esp32/dts_fixup.h +++ b/soc/xtensa/esp32/dts_fixup.h @@ -7,6 +7,6 @@ /* SoC level DTS fixup file */ #define DT_CPU_CLOCK_FREQUENCY DT_CADENCE_TENSILICA_XTENSA_LX6_0_CLOCK_FREQUENCY -#define CONFIG_ENTROPY_NAME DT_INST_0_ESPRESSIF_ESP32_TRNG_LABEL -#define DT_WDT_0_NAME DT_INST_0_ESPRESSIF_ESP32_WATCHDOG_LABEL +#define CONFIG_ENTROPY_NAME DT_LABEL(DT_INST(0, espressif_esp32_trng)) +#define DT_WDT_0_NAME DT_LABEL(DT_INST(0, espressif_esp32_watchdog)) /* End of SoC Level DTS fixup file */