From patchwork Mon Feb 15 07:10:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 61923 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp901544lbl; Sun, 14 Feb 2016 23:10:06 -0800 (PST) X-Received: by 10.28.137.139 with SMTP id l133mr11838687wmd.1.1455520206911; Sun, 14 Feb 2016 23:10:06 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id kt3si38687869wjb.137.2016.02.14.23.10.06; Sun, 14 Feb 2016 23:10:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7260FA752A; Mon, 15 Feb 2016 08:10:05 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n5LcpvWlQn5S; Mon, 15 Feb 2016 08:10:05 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CEE0EA748A; Mon, 15 Feb 2016 08:10:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3EFBEA748A for ; Mon, 15 Feb 2016 08:10:02 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01WT3B9yLGjR for ; Mon, 15 Feb 2016 08:10:02 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg011-v.nifty.com (conuserg011.nifty.com [202.248.44.37]) by theia.denx.de (Postfix) with ESMTPS id 78BAB4BA0E for ; Mon, 15 Feb 2016 08:09:57 +0100 (CET) Received: from beagle.diag.org (p14090-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.90]) (authenticated) by conuserg011-v.nifty.com with ESMTP id u1F79aFB026713; Mon, 15 Feb 2016 16:09:37 +0900 X-Nifty-SrcIP: [153.142.97.90] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 15 Feb 2016 16:10:24 +0900 Message-Id: <1455520224-28944-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Cc: Przemyslaw Marczak , Stefan Roese Subject: [U-Boot] [PATCH] Revert "gpio: Allow 's' as an abbreviation for 'status'" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This reverts commit 0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e. The GPIO command has five sub-commands: status, input, set, clear, and toggle. Commit 0ffe6ab521f9 (" gpio: Allow 's' as an abbreviation for 'status'") made the "set" sub-command unreachable because the sub-command that starts with the letter "s" is regarded as the "status" command. Signed-off-by: Masahiro Yamada --- cmd/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/cmd/gpio.c b/cmd/gpio.c index 2b78b16..7e02daf 100644 --- a/cmd/gpio.c +++ b/cmd/gpio.c @@ -141,7 +141,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #endif if (argc > 0) str_gpio = *argv; - if (!strncmp(str_cmd, "status", 1)) { + if (!strcmp(str_cmd, "status")) { /* Support deprecated gpio_status() */ #ifdef gpio_status gpio_status();