devicetree: add helper inline for retrieving a node's full name
authorGrant Likely <grant.likely@secretlab.ca>
Fri, 15 Jun 2012 17:50:25 +0000 (11:50 -0600)
committerRob Herring <rob.herring@calxeda.com>
Fri, 6 Jul 2012 12:16:34 +0000 (07:16 -0500)
commit74a7f08448adea6cb47cd9b260c98ff168117e92
treedf2ce1ae517e390d1049e01c1428a4b31fd689cc
parent1af4c7f18a442771d86d496c761e9816349f98c9
devicetree: add helper inline for retrieving a node's full name

The pattern (np ? np->full_name : "<none>") is rather common in the
kernel, but can also make for quite long lines.  This patch adds a new
inline function, of_node_full_name() so that the test for a valid node
pointer doesn't need to be open coded at all call sites.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
arch/microblaze/pci/pci-common.c
arch/powerpc/kernel/pci-common.c
arch/powerpc/kernel/vio.c
arch/powerpc/platforms/cell/iommu.c
arch/powerpc/platforms/pseries/iommu.c
arch/sparc/kernel/of_device_64.c
drivers/of/base.c
drivers/of/irq.c
include/linux/of.h
kernel/irq/irqdomain.c