SPDX: Convert all of our single license tags to Linux Kernel style
[platform/kernel/u-boot.git] / drivers / mtd / mtd_uboot.c
index 7197007..2b3b2ee 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2014
  * Heiko Schocher, DENX Software Engineering, hs@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
 #include <linux/mtd/mtd.h>
@@ -37,13 +36,13 @@ static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size,
 
        return 0;
 #else
-       puts("offset is not a number\n");
+       puts("mtdparts support missing.\n");
        return -1;
 #endif
 }
 
 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size,
-               loff_t *maxsize, int devtype, int chipsize)
+               loff_t *maxsize, int devtype, uint64_t chipsize)
 {
        if (!str2off(arg, off))
                return get_part(arg, idx, off, size, maxsize, devtype);
@@ -59,7 +58,8 @@ int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size,
 }
 
 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off,
-                loff_t *size, loff_t *maxsize, int devtype, int chipsize)
+                    loff_t *size, loff_t *maxsize, int devtype,
+                    uint64_t chipsize)
 {
        int ret;