diff options
author | Artem Bityutskiy <dedekind@infradead.org> | 2006-10-11 07:52:44 -0400 |
---|---|---|
committer | Artem Bityutskiy <dedekind@infradead.org> | 2006-11-29 10:04:31 -0500 |
commit | 7799308f34d3c3371a319559687c78c0f2506fcf (patch) | |
tree | 2e4f48326e848060aa8ffe104887a8d1d5bb1759 /include/linux/mtd | |
parent | 29072b96078ffde36f03d51e6b5d0cff1ba8c7df (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/linux/mtd')
-rw-r--r-- | include/linux/mtd/mtd.h | 1 |
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); | |||
216 | extern int del_mtd_device (struct mtd_info *mtd); | 216 | extern int del_mtd_device (struct mtd_info *mtd); |
217 | 217 | ||
218 | extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); | 218 | extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); |
219 | extern struct mtd_info *get_mtd_device_nm(const char *name); | ||
219 | 220 | ||
220 | extern void put_mtd_device(struct mtd_info *mtd); | 221 | extern void put_mtd_device(struct mtd_info *mtd); |
221 | 222 | ||