summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArtem Bityutskiy <dedekind@infradead.org>2006-10-11 14:52:44 +0300
committerArtem Bityutskiy <dedekind@infradead.org>2006-11-29 17:04:31 +0200
commit7799308f34d3c3371a319559687c78c0f2506fcf (patch)
tree2e4f48326e848060aa8ffe104887a8d1d5bb1759 /include
parent29072b96078ffde36f03d51e6b5d0cff1ba8c7df (diff)
[MTD] add get_mtd_device_nm() function
This patch adds one more function to the MTD interface to make it possible to open MTD devices by their names, not only numbers. This is very handy in many situations. Also, MTD device number depend on load order and may vary, while names are fixed. Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/mtd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 18acb6d0033b..89e937dfef55 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -216,6 +216,7 @@ extern int add_mtd_device(struct mtd_info *mtd);
extern int del_mtd_device (struct mtd_info *mtd);
extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num);
+extern struct mtd_info *get_mtd_device_nm(const char *name);
extern void put_mtd_device(struct mtd_info *mtd);