gpio: stm32f7: Move STM32_GPIOS_PER_BANK into gpio.h
authorPatrice Chotard <patrice.chotard@st.com>
Mon, 3 Dec 2018 09:52:52 +0000 (10:52 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 7 Dec 2018 13:13:47 +0000 (08:13 -0500)
To allow access to this define by other driver, move
it into gpio.h

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/include/asm/arch-stm32/gpio.h
arch/arm/mach-stm32mp/include/mach/gpio.h
drivers/gpio/stm32f7_gpio.c

index 8ba15b7..570e80a 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef _GPIO_H_
 #define _GPIO_H_
 
+#define STM32_GPIOS_PER_BANK           16
+
 enum stm32_gpio_port {
        STM32_GPIO_PORT_A = 0,
        STM32_GPIO_PORT_B,
index 46bef21..5ca76d2 100644 (file)
@@ -8,6 +8,8 @@
 #define _STM32_GPIO_H_
 #include <asm/gpio.h>
 
+#define STM32_GPIOS_PER_BANK           16
+
 enum stm32_gpio_port {
        STM32_GPIO_PORT_A = 0,
        STM32_GPIO_PORT_B,
index 55553c9..34cdafa 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/errno.h>
 #include <linux/io.h>
 
-#define STM32_GPIOS_PER_BANK           16
 #define MODE_BITS(gpio_pin)            (gpio_pin * 2)
 #define MODE_BITS_MASK                 3
 #define BSRR_BIT(gpio_pin, value)      BIT(gpio_pin + (value ? 0 : 16))