summaryrefslogtreecommitdiffstats
path: root/common/cmd_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_spi.c')
-rw-r--r--common/cmd_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_spi.c b/common/cmd_spi.c
index 7b6faf79c5..a6fdf7fddb 100644
--- a/common/cmd_spi.c
+++ b/common/cmd_spi.c
@@ -119,7 +119,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++);
}
OpenPOWER on IntegriCloud