From patchwork Mon Jan 27 06:30:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 240261 List-Id: U-Boot discussion From: luka.kovacic at sartura.hr (luka.kovacic at sartura.hr) Date: Mon, 27 Jan 2020 07:30:06 +0100 Subject: [PATCH 1/2 v1] cmd: doc: Update command return values In-Reply-To: <20200123211204.GC26536@bill-the-cat> References: <20200123211204.GC26536@bill-the-cat> Message-ID: <20200127063006.27936-1-luka.kovacic@sartura.hr> From: Luka Kovacic Update the command return values to CMD_RET_SUCCESS and CMD_RET_FAILURE in commands documentation. Signed-off-by: Luka Kovacic --- doc/README.commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/README.commands b/doc/README.commands index e03eb44187..4e9e8098fa 100644 --- a/doc/README.commands +++ b/doc/README.commands @@ -83,9 +83,9 @@ argv: Arguments. Allowable return value are: -CMD_SUCCESS The command was successfully executed. +CMD_RET_SUCCESS The command was successfully executed. -CMD_FAILURE The command failed. +CMD_RET_FAILURE The command failed. CMD_RET_USAGE The command was called with invalid parameters. This value leads to the display of the usage string. From patchwork Mon Jan 27 06:30:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luka Kovacic X-Patchwork-Id: 240262 List-Id: U-Boot discussion From: luka.kovacic at sartura.hr (luka.kovacic at sartura.hr) Date: Mon, 27 Jan 2020 07:30:20 +0100 Subject: [PATCH 2/2 v1] cmd: gpio: Add the command return value to the help text In-Reply-To: <20200123211204.GC26536@bill-the-cat> References: <20200123211204.GC26536@bill-the-cat> Message-ID: <20200127063020.28026-1-luka.kovacic@sartura.hr> From: Luka Kovacic Adds the command return value to the help text, since pin value is returned. Cc: Luka Perkov Signed-off-by: Luka Kovacic --- cmd/gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/gpio.c b/cmd/gpio.c index eff36ab2af..e57d3fb638 100644 --- a/cmd/gpio.c +++ b/cmd/gpio.c @@ -245,5 +245,6 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) U_BOOT_CMD(gpio, 4, 0, do_gpio, "query and control gpio pins", " \n" - " - input/set/clear/toggle the specified pin\n" + " - input/set/clear/toggle the specified pin; pin value is\n" + " returned.\n" "gpio status [-a] [ | ] - show [all/claimed] GPIOs");