]> Git Repo - J-u-boot.git/blobdiff - cmd/mii.c
global: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD
[J-u-boot.git] / cmd / mii.c
index fe8602eb7c87148d5bfeb6479c2f90d38a5f63aa..ce3724896926d28391ba594dcdcce22ad0f33df7 100644 (file)
--- a/cmd/mii.c
+++ b/cmd/mii.c
@@ -8,7 +8,6 @@
  * MII Utilities
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <miiphy.h>
@@ -267,10 +266,10 @@ static void extract_range(
        unsigned char * phi)
 {
        char * end;
-       *plo = simple_strtoul(input, &end, 16);
+       *plo = hextoul(input, &end);
        if (*end == '-') {
                end++;
-               *phi = simple_strtoul(end, NULL, 16);
+               *phi = hextoul(end, NULL);
        }
        else {
                *phi = *plo;
@@ -319,9 +318,9 @@ static int do_mii(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
                if (argc >= 4)
                        extract_range(argv[3], &reglo, &reghi);
                if (argc >= 5)
-                       data = simple_strtoul(argv[4], NULL, 16);
+                       data = hextoul(argv[4], NULL);
                if (argc >= 6)
-                       mask = simple_strtoul(argv[5], NULL, 16);
+                       mask = hextoul(argv[5], NULL);
        }
 
        if (addrhi > 31 && strncmp(op, "de", 2)) {
This page took 0.027875 seconds and 4 git commands to generate.