git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: mtd-abi: add a helper to detect the nand type
[sfrench/cifs-2.6.git]
/
include
/
uapi
/
mtd
/
mtd-abi.h
diff --git
a/include/uapi/mtd/mtd-abi.h
b/include/uapi/mtd/mtd-abi.h
index e89b096856f8e91020aa869fbfc86668433d8ea0..e272ea060e3851959878932ef2dd61c87e9d185e 100644
(file)
--- a/
include/uapi/mtd/mtd-abi.h
+++ b/
include/uapi/mtd/mtd-abi.h
@@
-275,4
+275,9
@@
enum mtd_file_modes {
MTD_FILE_MODE_RAW,
};
+static inline int mtd_type_is_nand_user(const struct mtd_info_user *mtd)
+{
+ return mtd->type == MTD_NANDFLASH || mtd->type == MTD_MLCNANDFLASH;
+}
+
#endif /* __MTD_ABI_H__ */