[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 Wed, 2014-02-19 at 16:52 +0000, Julien Grall wrote: > 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? I suppose it is better to not deviate more than necessary, so feel free to leave it. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |