]> git.ipfire.org Git - people/ms/u-boot.git/commit
gpio: Correct handling of 'gpio status'
authorSimon Glass <sjg@chromium.org>
Sun, 14 Feb 2016 23:28:59 +0000 (16:28 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 15 Feb 2016 20:58:25 +0000 (20:58 +0000)
commit4c80c53c00ac6583f22938fc98e4df688acdf4ce
treee0496900329c5484620aa09de598e2efbc575c33
parented0f40a673c42b4174ccb34e3c6d7b46cd90b701
gpio: Correct handling of 'gpio status'

This is broken - we need to look at the first two characters to distinguish
'gpio status' from 'gpio set'.

Fixes: 0ffe6ab5 (gpio: Allow 's' as an abbreviation for 'status')
Reported-by: Soeren Moch <smoch@web.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Soeren Moch <smoch@web.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Hannes Schmelzer <oe5hpm@oevsv.at>
cmd/gpio.c