diff options
| author | Mark Brown <broonie@linaro.org> | 2013-11-24 09:35:18 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-11-24 09:35:18 -0500 |
| commit | 30c27abd28fa168d7ebd2e5286f1fe473c74bfa9 (patch) | |
| tree | 9936b38c0c81cd430d5e75906c1207d127fe588c /include/linux/mfd/syscon.h | |
| parent | 16ec790938d4f356c82fab27b9a9adf4d6fe19a6 (diff) | |
| parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
Merge tag 'v3.13-rc1' into asoc-arizona
Linux 3.13-rc1
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__ */ |
