[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC for-4.5 05/12] xen/dts: Add dt_parse_phandle_with_args and dt_parse_phandle
On 02/19/2014 04:26 PM, Ian Campbell wrote: > On Wed, 2014-02-19 at 16:17 +0000, Julien Grall wrote: >>>> +/** >>>> + * dt_parse_phandle - Resolve a phandle property to a device_node pointer >>>> + * @np: Pointer to device node holding phandle property >>>> + * @phandle_name: Name of property holding a phandle value >>>> + * @index: For properties holding a table of phandles, this is the index >>>> into >>>> + * the table >>> >>> Otherwise it is -1 or something else? >> >> Even with one element, the property contains a table of phandles. So, >> the first index is always 0. > > OK, so the "For a properties holding a table..." bit is misleading > (that's the "otherwise" I was referring too, e..g properties which do > not hold a table0, since this is always the index, even if the table has > a single element. It was copied from Linux. Shall I update the comment? -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |