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/mfd/syscon.h | |
| parent | bafdc614a1f4f8be8cde41b8ab10ac17e67c1837 (diff) | |
| parent | 55957fb7a0b61d8ab6ff3f04e279b8fc22b738fa (diff) | |
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
Diffstat (limited to 'include/linux/mfd/syscon.h')
| -rw-r--r-- | include/linux/mfd/syscon.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h index b473577f36db..8789fa3c7fd9 100644 --- a/include/linux/mfd/syscon.h +++ b/include/linux/mfd/syscon.h | |||
| @@ -17,10 +17,35 @@ | |||
| 17 | 17 | ||
| 18 | struct device_node; | 18 | struct device_node; |
| 19 | 19 | ||
| 20 | #ifdef CONFIG_MFD_SYSCON | ||
| 20 | extern struct regmap *syscon_node_to_regmap(struct device_node *np); | 21 | extern struct regmap *syscon_node_to_regmap(struct device_node *np); |
| 21 | extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); | 22 | extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); |
| 22 | extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s); | 23 | extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s); |
| 23 | extern struct regmap *syscon_regmap_lookup_by_phandle( | 24 | extern struct regmap *syscon_regmap_lookup_by_phandle( |
| 24 | struct device_node *np, | 25 | struct device_node *np, |
| 25 | const char *property); | 26 | const char *property); |
| 27 | #else | ||
| 28 | static inline struct regmap *syscon_node_to_regmap(struct device_node *np) | ||
| 29 | { | ||
| 30 | return ERR_PTR(-ENOSYS); | ||
| 31 | } | ||
| 32 | |||
| 33 | static inline struct regmap *syscon_regmap_lookup_by_compatible(const char *s) | ||
| 34 | { | ||
| 35 | return ERR_PTR(-ENOSYS); | ||
| 36 | } | ||
| 37 | |||
| 38 | static inline struct regmap *syscon_regmap_lookup_by_pdevname(const char *s) | ||
| 39 | { | ||
| 40 | return ERR_PTR(-ENOSYS); | ||
| 41 | } | ||
| 42 | |||
| 43 | static inline struct regmap *syscon_regmap_lookup_by_phandle( | ||
| 44 | struct device_node *np, | ||
| 45 | const char *property) | ||
| 46 | { | ||
| 47 | return ERR_PTR(-ENOSYS); | ||
| 48 | } | ||
| 49 | #endif | ||
| 50 | |||
| 26 | #endif /* __LINUX_MFD_SYSCON_H__ */ | 51 | #endif /* __LINUX_MFD_SYSCON_H__ */ |
