summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-03-13 17:34:20 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-05 15:58:22 (GMT)
commit5ab3a89a741fa4c331f42dec17fde59586dc59e6 (patch)
tree840bbe9b19154a15213481b6f02cee9602a7af6f /include
parented21465a0987e5fd81d6b47349115f2dd3d8ef9c (diff)
downloadlinux-fsl-qoriq-5ab3a89a741fa4c331f42dec17fde59586dc59e6.tar.xz
mfd: syscon: Add non-DT support
This patch allow using syscon driver from the platform data, i.e. possibility using driver on systems without oftree support. For search syscon device from the client drivers, "syscon_regmap_lookup_by_pdevname" function was added. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/syscon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h
index 6aeb6b8..5c9ee6e 100644
--- a/include/linux/mfd/syscon.h
+++ b/include/linux/mfd/syscon.h
@@ -17,6 +17,7 @@
extern struct regmap *syscon_node_to_regmap(struct device_node *np);
extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s);
+extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s);
extern struct regmap *syscon_regmap_lookup_by_phandle(
struct device_node *np,
const char *property);