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>
This commit is contained in:
committed by
Andre Przywara
parent
4d9958b642
commit
8fe8ff3411
@@ -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" */
|
||||
|
||||
Reference in New Issue
Block a user