Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Rob Herring and committed by
Arnd Bergmann
9deee319 aae4e7a8

+3 -3
+1 -1
drivers/firmware/arm_scpi.c
··· 965 965 966 966 count = of_count_phandle_with_args(np, "mboxes", "#mbox-cells"); 967 967 if (count < 0) { 968 - dev_err(dev, "no mboxes property in '%s'\n", np->full_name); 968 + dev_err(dev, "no mboxes property in '%pOF'\n", np); 969 969 return -ENODEV; 970 970 } 971 971
+2 -2
drivers/firmware/psci.c
··· 280 280 "arm,psci-suspend-param", 281 281 &state); 282 282 if (ret) { 283 - pr_warn(" * %s missing arm,psci-suspend-param property\n", 284 - state_node->full_name); 283 + pr_warn(" * %pOF missing arm,psci-suspend-param property\n", 284 + state_node); 285 285 of_node_put(state_node); 286 286 goto free_mem; 287 287 }