Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed654324 authored by roald's avatar roald Committed by Liam Girdwood
Browse files

regulator: add initialization macro of regulator supply

parent e88267e1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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.
 *