From: Lothar Waßmann Date: Wed, 29 Jun 2016 08:52:53 +0000 (+0200) Subject: cmd_gpio.c: adjust help message depending on gpio_status being compiled in or not X-Git-Tag: KARO-TX-2016-07-05~5 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=df349e8a55f2cd750d1a998901896b8237d5c777 cmd_gpio.c: adjust help message depending on gpio_status being compiled in or not --- 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);