diff options
Diffstat (limited to 'include/linux/of_mtd.h')
| -rw-r--r-- | include/linux/of_mtd.h | 21 |
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> |
| 14 | int of_get_nand_ecc_mode(struct device_node *np); | 15 | int of_get_nand_ecc_mode(struct device_node *np); |
| 15 | int of_get_nand_bus_width(struct device_node *np); | 16 | int of_get_nand_bus_width(struct device_node *np); |
| 16 | bool of_get_nand_on_flash_bbt(struct device_node *np); | 17 | bool of_get_nand_on_flash_bbt(struct device_node *np); |
| 17 | #endif | 18 | |
| 19 | #else /* CONFIG_OF_MTD */ | ||
| 20 | |||
| 21 | static inline int of_get_nand_ecc_mode(struct device_node *np) | ||
| 22 | { | ||
| 23 | return -ENOSYS; | ||
| 24 | } | ||
| 25 | |||
| 26 | static inline int of_get_nand_bus_width(struct device_node *np) | ||
| 27 | { | ||
| 28 | return -ENOSYS; | ||
| 29 | } | ||
| 30 | |||
| 31 | static 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 */ |
