diff options
author | Paul Burton <paul.burton@mips.com> | 2019-08-08 18:33:16 -0400 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-08-08 18:33:16 -0400 |
commit | 75b7329a4f08b3d2566afa25cfaddc8ddfb6dfa1 (patch) | |
tree | 17a4e177a2a245af450827330eef0f39f16be3cf /include/linux/mfd/syscon.h | |
parent | 6393e60644862478a9da8c6599ffc04f7f94bedf (diff) | |
parent | abc552284f6b1e8e6f153771dac1dff72e9d6d66 (diff) |
Merge branch 'ingenic-tcu-v5.4' into mips-next
Merge the Ingenic TCU patchset from the ingenic-tcu-v5.4 branch which
was created to enable follow-on changes in other subsystems.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Diffstat (limited to 'include/linux/mfd/syscon.h')
-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); |