X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_vfd.c;h=9c5b0385b5a2484c0623df91a592540e90992210;hb=9ae7ae6b4dd9d0c6489ac5b054846f80cfd973b8;hp=118c50dcbc0591e48d45967bdb468db7781b836e;hpb=4f7cb08ee7b48a511a9cd2398fd4a243ca2733c7;p=u-boot diff --git a/common/cmd_vfd.c b/common/cmd_vfd.c index 118c50dcbc..9c5b0385b5 100644 --- a/common/cmd_vfd.c +++ b/common/cmd_vfd.c @@ -35,7 +35,7 @@ #include #include -#if (CONFIG_COMMANDS & CFG_CMD_VFD) +#if defined(CONFIG_CMD_VFD) #include #define VFD_TEST_LOGO_BMPNR 0 @@ -50,7 +50,7 @@ int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char *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 /* CFG_CMD_VFD */ +#endif -#ifdef CONFIG_VFD int trab_vfd (ulong bitmap) { uchar *addr; @@ -90,8 +89,6 @@ int trab_vfd (ulong bitmap) } break; case VFD_REMOTE_LOGO_BMPNR: - transfer_pic(3, &vfd_remote_logo_bitmap[0], - VFD_LOGO_HEIGHT, VFD_LOGO_WIDTH); if ((s = getenv ("bitmap1")) != NULL) { addr = (uchar *)simple_strtoul (s, NULL, 16); } else { @@ -105,4 +102,3 @@ int trab_vfd (ulong bitmap) transfer_pic(3, addr, VFD_LOGO_HEIGHT, VFD_LOGO_WIDTH); return 0; } -#endif /* CONFIG_VFD */