aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_mtd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_mtd.h')
-rw-r--r--include/linux/of_mtd.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/linux/of_mtd.h b/include/linux/of_mtd.h
index ed7f267e6389..6f10e938ff7e 100644
--- a/include/linux/of_mtd.h
+++ b/include/linux/of_mtd.h
@@ -10,10 +10,29 @@
10#define __LINUX_OF_NET_H 10#define __LINUX_OF_NET_H
11 11
12#ifdef CONFIG_OF_MTD 12#ifdef CONFIG_OF_MTD
13
13#include <linux/of.h> 14#include <linux/of.h>
14int of_get_nand_ecc_mode(struct device_node *np); 15int of_get_nand_ecc_mode(struct device_node *np);
15int of_get_nand_bus_width(struct device_node *np); 16int of_get_nand_bus_width(struct device_node *np);
16bool of_get_nand_on_flash_bbt(struct device_node *np); 17bool of_get_nand_on_flash_bbt(struct device_node *np);
17#endif 18
19#else /* CONFIG_OF_MTD */
20
21static inline int of_get_nand_ecc_mode(struct device_node *np)
22{
23 return -ENOSYS;
24}
25
26static inline int of_get_nand_bus_width(struct device_node *np)
27{
28 return -ENOSYS;
29}
30
31static inline bool of_get_nand_on_flash_bbt(struct device_node *np)
32{
33 return false;
34}
35
36#endif /* CONFIG_OF_MTD */
18 37
19#endif /* __LINUX_OF_MTD_H */ 38#endif /* __LINUX_OF_MTD_H */