summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2018-12-03 12:52:52 +0300
committerTom Rini <trini@konsulko.com>2018-12-07 16:13:47 +0300
commitb2f84e37e25c93c74a133ba57652291d771ab438 (patch)
tree6491e5b21445ce1845fa0f6cd56f76ef7175512c /drivers/gpio
parentdbf928dd2634a682e6d549e6dd61e3f2a0e5db90 (diff)
downloadu-boot-b2f84e37e25c93c74a133ba57652291d771ab438.tar.xz
gpio: stm32f7: Move STM32_GPIOS_PER_BANK into gpio.h
To allow access to this define by other driver, move it into gpio.h Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/stm32f7_gpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/stm32f7_gpio.c b/drivers/gpio/stm32f7_gpio.c
index 55553c9477..34cdafa1e4 100644
--- a/drivers/gpio/stm32f7_gpio.c
+++ b/drivers/gpio/stm32f7_gpio.c
@@ -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))