diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 05:23:45 -0500 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 05:23:45 -0500 |
| commit | c4de673b775e4db48cd2db6277e0c6714332ca0c (patch) | |
| tree | 84f9e4728e6ccf257236d2ba063b6e784ec8b65d /include/linux/of_mtd.h | |
| parent | bafdc614a1f4f8be8cde41b8ab10ac17e67c1837 (diff) | |
| parent | 55957fb7a0b61d8ab6ff3f04e279b8fc22b738fa (diff) | |
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
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 */ |
