[RFC PATCH 09/11] DT: regulator: Helper to extract regulator node based on supply name
Mark Brown
broonie at opensource.wolfsonmicro.com
Thu Sep 15 09:54:16 EDT 2011
On Thu, Sep 15, 2011 at 04:52:05PM +0530, Rajendra Nayak wrote:
> regulator = <®ulator1>,<®ulator2>;
> regulator-names = "supply1","supply2";
> };
This syntax is really painful - we're relying on keeping two arrays in
sync which isn't good for legibility or robustness. I'd expect
something like having a property with the supply name referencing the
regulator node concerned like:
dbvdd = <®ulator1>;
dcvdd = <®ulator2>;
or something. Keeping the two arrays separate doesn't seem great.
More information about the linux-arm-kernel
mailing list