]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: gpio: Remove bank-specific size macros
authorSamuel Holland <samuel@sholland.org>
Sat, 11 Sep 2021 21:50:49 +0000 (16:50 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Oct 2021 09:46:44 +0000 (10:46 +0100)
commitf86c0b124dd0a6ad36bb3a745d4c19de3e169dab
tree87967051697d75b0f1a238101f530dc0d4da8e97
parent5023368eb151f2cb84807bd39876f6ecf4ec7d73
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>
arch/arm/include/asm/arch-sunxi/gpio.h
drivers/gpio/sunxi_gpio.c