Skip to content

Commit 64bd095

Browse files
committed
soc: silabs: 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 <[email protected]>
1 parent 4cb0a5d commit 64bd095

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

soc/arm/silabs_exx32/efm32gg11b/dts_fixup.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
#define DT_GPIO_GECKO_SWO_LOCATION DT_SILABS_GECKO_GPIO_40088400_LOCATION_SWO
1616

17-
#define DT_RTC_0_NAME DT_INST_0_SILABS_GECKO_RTCC_LABEL
17+
#define DT_RTC_0_NAME DT_LABEL(DT_INST(0, silabs_gecko_rtcc))
1818

19-
#define DT_WDT_0_NAME DT_INST_0_SILABS_GECKO_WDOG_LABEL
20-
#define DT_WDT_1_NAME DT_INST_1_SILABS_GECKO_WDOG_LABEL
19+
#define DT_WDT_0_NAME DT_LABEL(DT_INST(0, silabs_gecko_wdog))
20+
#define DT_WDT_1_NAME DT_LABEL(DT_INST(1, silabs_gecko_wdog))
2121

2222
/* End of SoC Level DTS fixup file */

soc/arm/silabs_exx32/efm32jg12b/dts_fixup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
#define DT_GPIO_GECKO_SWO_LOCATION DT_SILABS_GECKO_GPIO_4000A400_LOCATION_SWO
1616

17-
#define DT_WDT_0_NAME DT_INST_0_SILABS_GECKO_WDOG_LABEL
18-
#define DT_WDT_1_NAME DT_INST_1_SILABS_GECKO_WDOG_LABEL
17+
#define DT_WDT_0_NAME DT_LABEL(DT_INST(0, silabs_gecko_wdog))
18+
#define DT_WDT_1_NAME DT_LABEL(DT_INST(1, silabs_gecko_wdog))
1919
#define CONFIG_ENTROPY_NAME DT_SILABS_GECKO_TRNG_4001D000_LABEL
2020

2121
/* End of SoC Level DTS fixup file */

soc/arm/silabs_exx32/efm32pg12b/dts_fixup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
#define DT_GPIO_GECKO_SWO_LOCATION DT_SILABS_GECKO_GPIO_4000A400_LOCATION_SWO
1616

17-
#define DT_WDT_0_NAME DT_INST_0_SILABS_GECKO_WDOG_LABEL
18-
#define DT_WDT_1_NAME DT_INST_1_SILABS_GECKO_WDOG_LABEL
17+
#define DT_WDT_0_NAME DT_LABEL(DT_INST(0, silabs_gecko_wdog))
18+
#define DT_WDT_1_NAME DT_LABEL(DT_INST(1, silabs_gecko_wdog))
1919
#define CONFIG_ENTROPY_NAME DT_SILABS_GECKO_TRNG_4001D000_LABEL
2020

2121
/* End of SoC Level DTS fixup file */

soc/arm/silabs_exx32/efr32fg1p/dts_fixup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
#define DT_GPIO_GECKO_SWO_LOCATION DT_SILABS_GECKO_GPIO_4000A400_LOCATION_SWO
1818

19-
#define DT_WDT_0_NAME DT_INST_0_SILABS_GECKO_WDOG_LABEL
19+
#define DT_WDT_0_NAME DT_LABEL(DT_INST(0, silabs_gecko_wdog))
2020

2121
/* End of SoC Level DTS fixup file */

soc/arm/silabs_exx32/efr32mg12p/dts_fixup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
#define DT_GPIO_GECKO_SWO_LOCATION DT_SILABS_GECKO_GPIO_4000A400_LOCATION_SWO
1818

19-
#define DT_WDT_0_NAME DT_INST_0_SILABS_GECKO_WDOG_LABEL
20-
#define DT_WDT_1_NAME DT_INST_1_SILABS_GECKO_WDOG_LABEL
19+
#define DT_WDT_0_NAME DT_LABEL(DT_INST(0, silabs_gecko_wdog))
20+
#define DT_WDT_1_NAME DT_LABEL(DT_INST(1, silabs_gecko_wdog))
2121
#define CONFIG_ENTROPY_NAME DT_SILABS_GECKO_TRNG_4001D000_LABEL
2222

2323
/* End of SoC Level DTS fixup file */

0 commit comments

Comments
 (0)