original_kernel/drivers/of
Stephen Warren 50c8af4cf9 of: introduce for_each_matching_node_and_match()
The following pattern of code is tempting:

    for_each_matching_node(np, table) {
        match = of_match_node(table, np);

However, this results in iterating over table twice; the second time
inside of_match_node(). The implementation of for_each_matching_node()
already found the match, so this is redundant. Invent new function
of_find_matching_node_and_match() and macro
for_each_matching_node_and_match() to remove the double iteration,
thus transforming the above code to:

    for_each_matching_node_and_match(np, table, &match)

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
2012-11-20 22:58:55 -06:00
..
Kconfig
Makefile
address.c
base.c of: introduce for_each_matching_node_and_match() 2012-11-20 22:58:55 -06:00
device.c
fdt.c of/fdt: NULL-terminate the root node path 2012-11-20 22:58:53 -06:00
irq.c of/irq: sparse fixes 2012-10-17 15:53:02 -05:00
of_i2c.c
of_mdio.c
of_mtd.c
of_net.c
of_pci.c
of_pci_irq.c
pdt.c
platform.c of/platform: sparse fix 2012-10-17 15:53:03 -05:00
selftest.c