summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-10-28 12:45:56 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-29 09:10:21 +0100
commitd317b1bf8500dc67adfb5903119fef28adb4b4c1 (patch)
treea1a67919b728a3364a222122e29a663128631b8d /include
parent865bab03473465ef67c069fc9209911cb6faf367 (diff)
downloadbarebox-d317b1bf8500dc67adfb5903119fef28adb4b4c1.tar.gz
barebox-d317b1bf8500dc67adfb5903119fef28adb4b4c1.tar.xz
mtd: Pass device_id to add_mtd_device
Right now we do not support persistent names for mtd devices. The base name can be passed to add_mtd_device, but this is always appended with a dynamic number. With this patch add_mtd_device takes a device_id argument which can be used to create a mtd device with an exact name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/mtd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index ed8722ea90..1735b49874 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -254,7 +254,7 @@ static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd)
}
/* Kernel-side ioctl definitions */
-extern int add_mtd_device(struct mtd_info *mtd, char *devname);
+extern int add_mtd_device(struct mtd_info *mtd, char *devname, int device_id);
extern int del_mtd_device (struct mtd_info *mtd);
extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num);