projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0c7b16
)
regulator: of: Add stub OF match function for !OF case
author
Mark Brown
<broonie@kernel.org>
Wed, 10 Sep 2014 14:17:01 +0000
(15:17 +0100)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Sep 2014 15:40:07 +0000
(16:40 +0100)
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/internal.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/internal.h
b/drivers/regulator/internal.h
index a6043ad32ead1f5fbbbf709c043a41794d5757df..80ba2a35a04bb3e6c7164380fe44d3220c54dafd 100644
(file)
--- a/
drivers/regulator/internal.h
+++ b/
drivers/regulator/internal.h
@@
-35,8
+35,18
@@
struct regulator {
struct dentry *debugfs;
};
+#ifdef CONFIG_OF
struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
const struct regulator_desc *desc,
struct device_node **node);
+#else
+static inline struct regulator_init_data *
+regulator_of_get_init_data(struct device *dev,
+ const struct regulator_desc *desc,
+ struct device_node **node)
+{
+ return NULL;
+}
+#endif
#endif