From: Mike Frysinger Date: Fri, 24 Sep 2010 19:34:08 +0000 (-0400) Subject: Blackfin: cmd_gpio: accept upper case pin names X-Git-Tag: v2010.12-rc1~169^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cec11d50140a843ed4e39feb519467e3fa985cf1;p=u-boot Blackfin: cmd_gpio: accept upper case pin names The intention all along was to accept pin names irrelevant of their case. But I guess I forgot to test/implement support for that. Signed-off-by: Mike Frysinger --- diff --git a/arch/blackfin/cpu/cmd_gpio.c b/arch/blackfin/cpu/cmd_gpio.c index 3e7ba0a347..e96413b639 100644 --- a/arch/blackfin/cpu/cmd_gpio.c +++ b/arch/blackfin/cpu/cmd_gpio.c @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -45,8 +46,8 @@ int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) /* grab the [p] portion */ ulong port_base; - if (*str_pin == 'p') ++str_pin; - switch (*str_pin) { + if (tolower(*str_pin) == 'p') ++str_pin; + switch (tolower(*str_pin)) { #ifdef GPIO_PA0 case 'a': port_base = GPIO_PA0; break; #endif