aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-09-11 16:50:49 -0500
committerAndre Przywara <andre.przywara@arm.com>2021-10-11 10:46:44 +0100
commit8fe8ff34110792f8a4ed4ab7a4f4e14c82feb452 (patch)
tree87967051697d75b0f1a238101f530dc0d4da8e97 /drivers
parent4d9958b6424b370555fa9fda7a0dd97b353b9797 (diff)
downloadu-boot-8fe8ff34110792f8a4ed4ab7a4f4e14c82feb452.zip
u-boot-8fe8ff34110792f8a4ed4ab7a4f4e14c82feb452.tar.gz
u-boot-8fe8ff34110792f8a4ed4ab7a4f4e14c82feb452.tar.bz2
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')
-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 bf7d82f..cdbc40d 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" */