gpio: Use case-insentive matching on the GPIO name
authorSimon Glass <sjg@chromium.org>
Sun, 17 Feb 2019 03:24:43 +0000 (20:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 20 Feb 2019 07:25:28 +0000 (15:25 +0800)
commit48ca690917fc98cffa6b991a6e37fb221a64c9c8
tree54e51d8e7d0a89dd189b18810289f8a8c77ce9ef
parentb8989b537eb1f3387d08a1c34633e78e6a56acc2
gpio: Use case-insentive matching on the GPIO name

Allow the 'gpio' command to match GPIO bank names regardless of the case
of each. While these are generally in upper case, it is useful to be able
to provide lower case with the command.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
cmd/gpio.c