From: Mike Frysinger Date: Fri, 24 Sep 2010 19:34:08 +0000 (-0400) Subject: Blackfin: cmd_gpio: accept upper case pin names X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=cec11d50140a843ed4e39feb519467e3fa985cf1;p=u-boot.git 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