From: roald Date: Mon, 13 Jul 2009 09:25:21 +0000 (+0800) Subject: regulator: add initialization macro of regulator supply X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed6543243a1c557dbe2005a86f6d8e851c1ebb79;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git regulator: add initialization macro of regulator supply Signed-off-by: Haojian Zhuang Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index 73a88f6cbb1c..99a4e2eb36aa 100644 --- 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. *