Commit ed6543243a1c557dbe2005a86f6d8e851c1ebb79

Authored by roald
Committed by Liam Girdwood
1 parent e88267e164

regulator: add initialization macro of regulator supply

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>

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

include/linux/regulator/machine.h
... ... @@ -141,6 +141,13 @@
141 141 const char *supply; /* consumer supply - e.g. "vcc" */
142 142 };
143 143  
  144 +/* Initialize struct regulator_consumer_supply */
  145 +#define REGULATOR_SUPPLY(_name, _dev_name) \
  146 +{ \
  147 + .supply = _name, \
  148 + .dev_name = _dev_name, \
  149 +}
  150 +
144 151 /**
145 152 * struct regulator_init_data - regulator platform initialisation data.
146 153 *