X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_vfd.c;h=1429d311675ab46a22b2350597fe3df82f7650cc;hb=4638b21f2ebc3781def51e82fb4e425a468f2e49;hp=29c349dab9c5d21e59dcb084c15cf7e505803b02;hpb=6bf6f114dcdd97ec3f80c2761ed40e31229d6b78;p=u-boot diff --git a/common/cmd_vfd.c b/common/cmd_vfd.c index 29c349dab9..1429d31167 100644 --- a/common/cmd_vfd.c +++ b/common/cmd_vfd.c @@ -45,12 +45,12 @@ extern int transfer_pic(unsigned char, unsigned char *, int, int); int trab_vfd (ulong bitmap); -int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { ulong bitmap; if (argc != 2) { - printf ("Usage:\n%s\n", cmdtp->usage); + cmd_usage(cmdtp); return 1; } @@ -66,16 +66,15 @@ int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } U_BOOT_CMD( - vfd, 2, 0, do_vfd, - "vfd - load a bitmap to the VFDs on TRAB\n", - "/N\n" - " - load bitmap N to the VFDs (N is _decimal_ !!!)\n" + vfd, 2, 0, do_vfd, + "load a bitmap to the VFDs on TRAB", + "/N\n" + " - load bitmap N to the VFDs (N is _decimal_ !!!)\n" "vfd ADDR\n" - " - load bitmap at address ADDR\n" + " - load bitmap at address ADDR" ); #endif -#ifdef CONFIG_VFD int trab_vfd (ulong bitmap) { uchar *addr; @@ -103,4 +102,3 @@ int trab_vfd (ulong bitmap) transfer_pic(3, addr, VFD_LOGO_HEIGHT, VFD_LOGO_WIDTH); return 0; } -#endif /* CONFIG_VFD */