Commit 07ce60f3 authored by Simon Glass's avatar Simon Glass Committed by Hans de Goede
Browse files

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: default avatarSimon Glass <>
Acked-by: default avatarHans de Goede <>
Signed-off-by: default avatarHans de Goede <>
parent 4f7e01c9
......@@ -249,10 +249,11 @@ static char *gpio_bank_name(int bank)
char *name;
name = malloc(2);
name = malloc(3);
if (name) {
name[0] = 'A' + bank;
name[1] = '\0';
name[0] = 'P';
name[1] = 'A' + bank;
name[2] = '\0';
return name;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment