From df349e8a55f2cd750d1a998901896b8237d5c777 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Wed, 29 Jun 2016 10:52:53 +0200 Subject: [PATCH] cmd_gpio.c: adjust help message depending on gpio_status being compiled in or not --- common/cmd_gpio.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c index 58d8125f84..93c53a867c 100644 --- a/common/cmd_gpio.c +++ b/common/cmd_gpio.c @@ -211,8 +211,14 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return (ret && ret != -EBUSY) ? CMD_RET_FAILURE : CMD_RET_SUCCESS; } +#ifdef gpio_status +#define gpio_status_help_msg "gpio status [-a] [ | ] - show [all/claimed] GPIOs" +#else +#define gpio_status_help_msg "" +#endif + U_BOOT_CMD(gpio, 4, 0, do_gpio, "query and control gpio pins", " \n" " - input/set/clear/toggle the specified pin\n" - "gpio status [-a] [ | ] - show [all/claimed] GPIOs"); + gpio_status_help_msg); -- 2.39.2