Skip to content

Commit 5645adb

Browse files
asmellbykartben
authored andcommitted
drivers: gpio: gecko: Simplify device support
Simplify the distinction between Series 0/1 and Series 2. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent 09efa2c commit 5645adb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/gpio/gpio_gecko.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
#if DT_NODE_HAS_PROP(id, peripheral_id)
2727
#define GET_GECKO_GPIO_INDEX(id) DT_INST_PROP(id, peripheral_id)
2828
#else
29-
#if defined(CONFIG_SOC_SERIES_EFR32BG22) || \
30-
defined(CONFIG_SOC_SERIES_EFR32BG27) || \
31-
defined(CONFIG_SOC_SERIES_EFR32MG21) || \
32-
defined(CONFIG_SOC_SERIES_EFR32MG24) || \
33-
defined(CONFIG_SOC_SERIES_EFR32ZG23)
29+
#if defined(CONFIG_SOC_FAMILY_SILABS_S2)
3430
#define GECKO_GPIO_PORT_ADDR_SPACE_SIZE sizeof(GPIO_PORT_TypeDef)
3531
#else
3632
#define GECKO_GPIO_PORT_ADDR_SPACE_SIZE sizeof(GPIO_P_TypeDef)

0 commit comments

Comments
 (0)