]> Git Repo - J-u-boot.git/blobdiff - cmd/bootcount.c
Merge branch 'next'
[J-u-boot.git] / cmd / bootcount.c
index 3898d2543d2cd232fbbd54e4e7ee256647a98765..5e3b66e676b83ef2a6b371f3a38a0e0ad8c802c3 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <command.h>
 #include <bootcount.h>
 
@@ -46,16 +45,11 @@ static int do_bootcount(struct cmd_tbl *cmdtp, int flag, int argc,
        return CMD_RET_USAGE;
 }
 
-#if IS_ENABLED(CONFIG_SYS_LONGHELP)
-static char bootcount_help_text[] =
+U_BOOT_LONGHELP(bootcount,
        "print - print current bootcounter\n"
-       "reset - reset the bootcounter"
-       ;
-#endif
+       "reset - reset the bootcounter");
 
 U_BOOT_CMD(bootcount, 2, 1, do_bootcount,
           "bootcount",
-#if IS_ENABLED(CONFIG_SYS_LONGHELP)
           bootcount_help_text
-#endif
 );
This page took 0.023936 seconds and 4 git commands to generate.