From 6e73181c473b6738f78bb0e2de7a2f7579493d1d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 19 Sep 2025 12:26:34 -0400 Subject: [PATCH] stm32: No need to special case GPIOI in stm32h7_spi.c Signed-off-by: Kevin O'Connor --- src/stm32/stm32h7_spi.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/stm32/stm32h7_spi.c b/src/stm32/stm32h7_spi.c index 1d8c2afdf..82a5ea0eb 100644 --- a/src/stm32/stm32h7_spi.c +++ b/src/stm32/stm32h7_spi.c @@ -34,10 +34,8 @@ DECL_ENUMERATION("spi_bus", "spi5a", 7); DECL_CONSTANT_STR("BUS_PINS_spi5a", "PH7,PF11,PH6"); DECL_ENUMERATION("spi_bus", "spi6", 8); DECL_CONSTANT_STR("BUS_PINS_spi6", "PG12,PG14,PG13"); -#ifdef GPIOI DECL_ENUMERATION("spi_bus", "spi2b", 9); DECL_CONSTANT_STR("BUS_PINS_spi2b", "PI2,PI3,PI1"); -#endif static const struct spi_info spi_bus[] = { { SPI2, GPIO('B', 14), GPIO('B', 15), GPIO('B', 13), GPIO_FUNCTION(5) }, @@ -49,9 +47,7 @@ static const struct spi_info spi_bus[] = { { SPI5, GPIO('F', 8), GPIO('F', 9), GPIO('F', 7), GPIO_FUNCTION(5) }, { SPI5, GPIO('H', 7), GPIO('F', 11), GPIO('H', 6), GPIO_FUNCTION(5) }, { SPI6, GPIO('G', 12), GPIO('G', 14), GPIO('G', 13), GPIO_FUNCTION(5)}, -#ifdef GPIOI { SPI2, GPIO('I', 2), GPIO('I', 3), GPIO('I', 1), GPIO_FUNCTION(5) }, -#endif }; struct spi_config