of: Add cpu node iterator for_each_of_cpu_node()
authorRob Herring <robh@kernel.org>
Wed, 22 Aug 2018 20:04:40 +0000 (15:04 -0500)
committerRob Herring <robh@kernel.org>
Fri, 28 Sep 2018 19:25:58 +0000 (14:25 -0500)
commitf1f207e43b8a49ac2ee3c36a64de1f84651c6079
tree0989fbb86c45ef7635bd7a1964e2fc615a5209fc
parentf6707fd6241e483f6fea2caae82d876e422bb11a
of: Add cpu node iterator for_each_of_cpu_node()

Iterating thru cpu nodes is a common pattern. Create a common iterator
which can find child nodes either by node name or device_type == cpu.
Using the former will allow for eventually dropping device_type
properties which are deprecated for FDT.

Cc: Frank Rowand <frowand.list@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c
include/linux/of.h