Re: [PATCH v2 1/9] of: add helper to lookup compatible child node

2018-08-30 Thread Rob Herring
On Mon, Aug 27, 2018 at 3:22 AM Johan Hovold wrote: > > Add of_get_compatible_child() helper that can be used to lookup > compatible child nodes. > > Several drivers currently use of_find_compatible_node() to lookup child > nodes while failing to notice that the of_find_ functions search the >

Re: [PATCH v2 1/9] of: add helper to lookup compatible child node

2018-08-30 Thread Rob Herring
On Mon, Aug 27, 2018 at 3:22 AM Johan Hovold wrote: > > Add of_get_compatible_child() helper that can be used to lookup > compatible child nodes. > > Several drivers currently use of_find_compatible_node() to lookup child > nodes while failing to notice that the of_find_ functions search the >

[PATCH v2 1/9] of: add helper to lookup compatible child node

2018-08-27 Thread Johan Hovold
Add of_get_compatible_child() helper that can be used to lookup compatible child nodes. Several drivers currently use of_find_compatible_node() to lookup child nodes while failing to notice that the of_find_ functions search the entire tree depth-first (from a given start node) and therefore can

[PATCH v2 1/9] of: add helper to lookup compatible child node

2018-08-27 Thread Johan Hovold
Add of_get_compatible_child() helper that can be used to lookup compatible child nodes. Several drivers currently use of_find_compatible_node() to lookup child nodes while failing to notice that the of_find_ functions search the entire tree depth-first (from a given start node) and therefore can