2 * System Control Driver
4 * Copyright (C) 2012 Freescale Semiconductor, Inc.
5 * Copyright (C) 2012 Linaro Ltd.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
15 #ifndef __LINUX_MFD_SYSCON_H__
16 #define __LINUX_MFD_SYSCON_H__
18 #include <linux/err.h>
22 #ifdef CONFIG_MFD_SYSCON
23 extern struct regmap *syscon_node_to_regmap(struct device_node *np);
24 extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s);
25 extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s);
26 extern struct regmap *syscon_regmap_lookup_by_phandle(
27 struct device_node *np,
28 const char *property);
30 static inline struct regmap *syscon_node_to_regmap(struct device_node *np)
32 return ERR_PTR(-ENOSYS);
35 static inline struct regmap *syscon_regmap_lookup_by_compatible(const char *s)
37 return ERR_PTR(-ENOSYS);
40 static inline struct regmap *syscon_regmap_lookup_by_pdevname(const char *s)
42 return ERR_PTR(-ENOSYS);
45 static inline struct regmap *syscon_regmap_lookup_by_phandle(
46 struct device_node *np,
49 return ERR_PTR(-ENOSYS);
53 #endif /* __LINUX_MFD_SYSCON_H__ */