summaryrefslogtreecommitdiff
path: root/drivers/gpio/sunxi_gpio.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-09-12 00:50:49 +0300
committerAndre Przywara <andre.przywara@arm.com>2021-10-11 12:46:44 +0300
commit8fe8ff34110792f8a4ed4ab7a4f4e14c82feb452 (patch)
tree87967051697d75b0f1a238101f530dc0d4da8e97 /drivers/gpio/sunxi_gpio.c
parent4d9958b6424b370555fa9fda7a0dd97b353b9797 (diff)
downloadu-boot-8fe8ff34110792f8a4ed4ab7a4f4e14c82feb452.tar.xz
sunxi: gpio: Remove bank-specific size macros
Since the beginning, all banks have had space for 32 pins, even when not all pins were implemented. Let's use a single constant for the GPIO bank size here, like the GPIO driver is already doing. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/gpio/sunxi_gpio.c')
-rw-r--r--drivers/gpio/sunxi_gpio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c
index bf7d82fbf5..cdbc40d48f 100644
--- a/drivers/gpio/sunxi_gpio.c
+++ b/drivers/gpio/sunxi_gpio.c
@@ -19,8 +19,6 @@
#include <dm/device-internal.h>
#include <dt-bindings/gpio/gpio.h>
-#define SUNXI_GPIOS_PER_BANK SUNXI_GPIO_A_NR
-
struct sunxi_gpio_plat {
struct sunxi_gpio *regs;
const char *bank_name; /* Name of bank, e.g. "B" */