]> Git Repo - J-u-boot.git/blobdiff - drivers/dfu/dfu_nand.c
global: Convert simple_strtoul() with hex to hextoul()
[J-u-boot.git] / drivers / dfu / dfu_nand.c
index b8d24d203beb097b52bbb97f45a90528691be903..6ddf80b78a5c00c95c3fec34688c96e05cfabdad 100644 (file)
@@ -204,9 +204,9 @@ int dfu_fill_entity_nand(struct dfu_entity *dfu, char *devstr, char *s)
        st = strsep(&s, " ");
        if (!strcmp(st, "raw")) {
                dfu->layout = DFU_RAW_ADDR;
-               dfu->data.nand.start = simple_strtoul(s, &s, 16);
+               dfu->data.nand.start = hextoul(s, &s);
                s++;
-               dfu->data.nand.size = simple_strtoul(s, &s, 16);
+               dfu->data.nand.size = hextoul(s, &s);
        } else if ((!strcmp(st, "part")) || (!strcmp(st, "partubi"))) {
                char mtd_id[32];
                struct mtd_device *mtd_dev;
This page took 0.021183 seconds and 4 git commands to generate.