]> Git Repo - u-boot.git/blobdiff - board/cavium/thunderx/atf.c
global: Convert simple_strtoul() with hex to hextoul()
[u-boot.git] / board / cavium / thunderx / atf.c
index 64aa198765fecd0eb7faa20a9d4086996d27a3de..582af6f1f1a1ca237642faaf3baf8a696c908608 100644 (file)
@@ -235,25 +235,25 @@ int do_atf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
        char str[4 * sizeof(uint64_t)];
 
        if ((argc == 5) && !strcmp(argv[1], "readmmc")) {
-               buffer = (void *)simple_strtoul(argv[2], NULL, 16);
+               buffer = (void *)hextoul(argv[2], NULL);
                offset = simple_strtoul(argv[3], NULL, 10);
                size = simple_strtoul(argv[4], NULL, 10);
 
                ret = atf_read_mmc(offset, buffer, size);
        } else if ((argc == 5) && !strcmp(argv[1], "readnor")) {
-               buffer = (void *)simple_strtoul(argv[2], NULL, 16);
+               buffer = (void *)hextoul(argv[2], NULL);
                offset = simple_strtoul(argv[3], NULL, 10);
                size = simple_strtoul(argv[4], NULL, 10);
 
                ret = atf_read_nor(offset, buffer, size);
        } else if ((argc == 5) && !strcmp(argv[1], "writemmc")) {
-               buffer = (void *)simple_strtoul(argv[2], NULL, 16);
+               buffer = (void *)hextoul(argv[2], NULL);
                offset = simple_strtoul(argv[3], NULL, 10);
                size = simple_strtoul(argv[4], NULL, 10);
 
                ret = atf_write_mmc(offset, buffer, size);
        } else if ((argc == 5) && !strcmp(argv[1], "writenor")) {
-               buffer = (void *)simple_strtoul(argv[2], NULL, 16);
+               buffer = (void *)hextoul(argv[2], NULL);
                offset = simple_strtoul(argv[3], NULL, 10);
                size = simple_strtoul(argv[4], NULL, 10);
 
This page took 0.025357 seconds and 4 git commands to generate.