X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Fcmd_spi.c;h=76044221416c9fbd194828b6f4c6bd35fdd461fd;hb=9caeaadf508cd0e11ac5dfc56ab0f72e3b89a105;hp=82cb673f5f97002826f16ad53c14d51c0ae63fda;hpb=8bde7f776c77b343aca29b8c7b58464d915ac245;p=platform%2Fkernel%2Fu-boot.git diff --git a/common/cmd_spi.c b/common/cmd_spi.c index 82cb673..7604422 100644 --- a/common/cmd_spi.c +++ b/common/cmd_spi.c @@ -29,8 +29,6 @@ #include #include -#if (CONFIG_COMMANDS & CFG_CMD_SPI) - /*----------------------------------------------------------------------- * Definitions */ @@ -119,7 +117,7 @@ int do_spi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) printf("Error with the SPI transaction.\n"); rcode = 1; } else { - cp = din; + cp = (char *)din; for(j = 0; j < ((bitlen + 7) / 8); j++) { printf("%02X", *cp++); } @@ -131,13 +129,11 @@ int do_spi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) /***************************************************/ -cmd_tbl_t U_BOOT_CMD(SPI) = MK_CMD_ENTRY( - "sspi", 5, 1, do_spi, - "sspi - SPI utility commands\n", +U_BOOT_CMD( + sspi, 5, 1, do_spi, + "sspi - SPI utility commands\n", " - Send bits from out the SPI\n" " - Identifies the chip select of the device\n" " - Number of bits to send (base 10)\n" " - Hexadecimal string that gets sent\n" ); - -#endif /* CFG_CMD_SPI */