projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88267e
)
regulator: add initialization macro of regulator supply
author
roald
<roald@sh-dt-4505.(none)>
Mon, 13 Jul 2009 09:25:21 +0000
(17:25 +0800)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Tue, 22 Sep 2009 12:32:37 +0000
(13:32 +0100)
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
include/linux/regulator/machine.h
patch
|
blob
|
history
diff --git
a/include/linux/regulator/machine.h
b/include/linux/regulator/machine.h
index 73a88f6cbb1cc5abb821d77635cb623098fa49e6..99a4e2eb36aa0a0a8cac2b42c99ba42d4e7979d3 100644
(file)
--- a/
include/linux/regulator/machine.h
+++ b/
include/linux/regulator/machine.h
@@
-141,6
+141,13
@@
struct regulator_consumer_supply {
const char *supply; /* consumer supply - e.g. "vcc" */
};
+/* Initialize struct regulator_consumer_supply */
+#define REGULATOR_SUPPLY(_name, _dev_name) \
+{ \
+ .supply = _name, \
+ .dev_name = _dev_name, \
+}
+
/**
* struct regulator_init_data - regulator platform initialisation data.
*