summaryrefslogtreecommitdiffstats
path: root/include/mfd
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-02-24 19:52:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-25 09:46:10 +0100
commit52085506972f6acf04c2f7252de62da2711cea6d (patch)
tree6b251c9d9e3a52e70715797e1aecc5cb11668550 /include/mfd
parentb559b5c5e60f783dce654684ed192e65e11afbf3 (diff)
downloadbarebox-52085506972f6acf04c2f7252de62da2711cea6d.tar.gz
barebox-52085506972f6acf04c2f7252de62da2711cea6d.tar.xz
regmap: Implement syscon_regmap_lookup_by_compatible()
Implement syscon_regmap_lookup_by_compatible() to simplify porting kernel code. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Tested-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mfd')
-rw-r--r--include/mfd/syscon.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mfd/syscon.h b/include/mfd/syscon.h
index 63b893e4ae..902f9fa2f3 100644
--- a/include/mfd/syscon.h
+++ b/include/mfd/syscon.h
@@ -21,6 +21,7 @@ void __iomem *syscon_base_lookup_by_pdevname(const char *s);
void __iomem *syscon_base_lookup_by_phandle
(struct device_node *np, const char *property);
struct regmap *syscon_node_to_regmap(struct device_node *np);
+struct regmap *syscon_regmap_lookup_by_compatible(const char *s);
#else
static inline void __iomem *syscon_base_lookup_by_pdevname(const char *s)
{
@@ -37,6 +38,10 @@ static inline struct regmap *syscon_node_to_regmap(struct device_node *np)
{
return ERR_PTR(-ENOSYS);
}
+static inline struct regmap *syscon_regmap_lookup_by_compatible(const char *s)
+{
+ return ERR_PTR(-ENOSYS);
+}
#endif
#endif