diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/syscon.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h index 8cfda0554381..112dc66262cc 100644 --- a/include/linux/mfd/syscon.h +++ b/include/linux/mfd/syscon.h | |||
| @@ -17,12 +17,18 @@ | |||
| 17 | struct device_node; | 17 | struct device_node; |
| 18 | 18 | ||
| 19 | #ifdef CONFIG_MFD_SYSCON | 19 | #ifdef CONFIG_MFD_SYSCON |
| 20 | extern struct regmap *device_node_to_regmap(struct device_node *np); | ||
| 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_phandle( | 23 | extern struct regmap *syscon_regmap_lookup_by_phandle( |
| 23 | struct device_node *np, | 24 | struct device_node *np, |
| 24 | const char *property); | 25 | const char *property); |
| 25 | #else | 26 | #else |
| 27 | static inline struct regmap *device_node_to_regmap(struct device_node *np) | ||
| 28 | { | ||
| 29 | return ERR_PTR(-ENOTSUPP); | ||
| 30 | } | ||
| 31 | |||
| 26 | static inline struct regmap *syscon_node_to_regmap(struct device_node *np) | 32 | static inline struct regmap *syscon_node_to_regmap(struct device_node *np) |
| 27 | { | 33 | { |
| 28 | return ERR_PTR(-ENOTSUPP); | 34 | return ERR_PTR(-ENOTSUPP); |
