1
linux/drivers/of
Grant Likely 15c9a0acc3 of: create of_phandle_args to simplify return of phandle parsing data
of_parse_phandle_with_args() needs to return quite a bit of data.  Rather
than making each datum a separate **out_ argument, this patch creates
struct of_phandle_args to contain all the returned data and reworks the
user of the function.  This patch also enables of_parse_phandle_with_args()
to return the device node pointer for the phandle node.

This patch also ends up being fairly major surgery to
of_parse_handle_with_args().  The existing structure didn't work well
when extending to use of_phandle_args, and I discovered bugs during testing.
I also took the opportunity to rename the function to be like the
existing of_parse_phandle().

v2: - moved declaration of of_phandle_args to fix compile on non-DT builds
    - fixed incorrect index in example usage
    - fixed incorrect return code handling for empty entries

Reviewed-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-12-12 13:40:16 -07:00
..
address.c of: address: use resource_size helper 2011-08-01 12:55:02 +01:00
base.c of: create of_phandle_args to simplify return of phandle parsing data 2011-12-12 13:40:16 -07:00
device.c dt/powerpc: move of_bus_type infrastructure to ibmebus 2011-02-28 01:36:38 -07:00
fdt.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2011-11-06 17:12:03 -08:00
gpio.c of: create of_phandle_args to simplify return of phandle parsing data 2011-12-12 13:40:16 -07:00
irq.c of/irq: Get rid of NO_IRQ usage 2011-12-07 09:06:37 -08:00
Kconfig pci/of: Match PCI devices to OF nodes dynamically 2011-06-08 09:08:17 +10:00
Makefile pci/of: Match PCI devices to OF nodes dynamically 2011-06-08 09:08:17 +10:00
of_i2c.c of/i2c: Fix request module by alias 2010-12-24 01:28:54 -07:00
of_mdio.c of_mdio: Don't phy_scan_fixups() twice 2011-10-25 06:55:52 +02:00
of_net.c drivers/of: include export.h for EXPORT_SYMBOL_GPL/THIS_MODULE as required 2011-10-31 19:31:56 -04:00
of_pci_irq.c drivers/of: include export.h for EXPORT_SYMBOL_GPL/THIS_MODULE as required 2011-10-31 19:31:56 -04:00
of_pci.c of: of_pci.c needs export.h since it uses EXPORT_SYMBOLS 2011-10-31 19:31:14 -04:00
of_spi.c drivers/of: Add module.h to of_spi.c 2011-10-31 19:31:55 -04:00
pdt.c dt: add of_alias_scan and of_alias_get_id 2011-09-22 11:12:10 -06:00
platform.c dt/platform: minor cleanup 2011-11-03 15:49:24 -05:00