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++);
}
/***************************************************/
-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",
"<device> <bit_len> <dout> - Send <bit_len> bits from <dout> out the SPI\n"
"<device> - Identifies the chip select of the device\n"
"<bit_len> - Number of bits to send (base 10)\n"