aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/syscon.h
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2019-08-08 18:33:16 -0400
committerPaul Burton <paul.burton@mips.com>2019-08-08 18:33:16 -0400
commit75b7329a4f08b3d2566afa25cfaddc8ddfb6dfa1 (patch)
tree17a4e177a2a245af450827330eef0f39f16be3cf /include/linux/mfd/syscon.h
parent6393e60644862478a9da8c6599ffc04f7f94bedf (diff)
parentabc552284f6b1e8e6f153771dac1dff72e9d6d66 (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.h6
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 @@
17struct device_node; 17struct device_node;
18 18
19#ifdef CONFIG_MFD_SYSCON 19#ifdef CONFIG_MFD_SYSCON
20extern struct regmap *device_node_to_regmap(struct device_node *np);
20extern struct regmap *syscon_node_to_regmap(struct device_node *np); 21extern struct regmap *syscon_node_to_regmap(struct device_node *np);
21extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); 22extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s);
22extern struct regmap *syscon_regmap_lookup_by_phandle( 23extern 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
27static inline struct regmap *device_node_to_regmap(struct device_node *np)
28{
29 return ERR_PTR(-ENOTSUPP);
30}
31
26static inline struct regmap *syscon_node_to_regmap(struct device_node *np) 32static inline struct regmap *syscon_node_to_regmap(struct device_node *np)
27{ 33{
28 return ERR_PTR(-ENOTSUPP); 34 return ERR_PTR(-ENOTSUPP);