mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
sunxi: gpio: Rename GPIOs to include a 'P' prefix
By convention, sunxi GPIOs are named PA1, PA2 instead of A1, A2. Change the driver model GPIO driver for sunxi to use these names. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
4f7e01c961
commit
07ce60f3cd
@ -249,10 +249,11 @@ static char *gpio_bank_name(int bank)
|
|||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
name = malloc(2);
|
name = malloc(3);
|
||||||
if (name) {
|
if (name) {
|
||||||
name[0] = 'A' + bank;
|
name[0] = 'P';
|
||||||
name[1] = '\0';
|
name[1] = 'A' + bank;
|
||||||
|
name[2] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
|
Loading…
Reference in New Issue
Block a user