Re: [PATCH v5 4/4] regulator: map consumer regulator based on device tree

2011-11-23 Thread Mark Brown
On Fri, Nov 18, 2011 at 04:47:20PM +0530, Rajendra Nayak wrote: + struct device_node *regnode = NULL; + char prop_name[32]; /* 32 is max size of property name */ There ought to be a #define for that though I can't see one right now - this can't be the only place where we need to do

[PATCH v5 4/4] regulator: map consumer regulator based on device tree

2011-11-18 Thread Rajendra Nayak
Device nodes in DT can associate themselves with one or more regulators/supply by providing a list of phandles (to regulator nodes) and corresponding supply names. For Example: devicenode: node@0x0 { ... ... vmmc-supply = regulator1;