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

mux: 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>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring and committed by
Greg Kroah-Hartman
c398bc9b 2c9c4ae6

+6 -6
+6 -6
drivers/mux/mux-core.c
··· 452 452 "mux-controls", "#mux-control-cells", 453 453 index, &args); 454 454 if (ret) { 455 - dev_err(dev, "%s: failed to get mux-control %s(%i)\n", 456 - np->full_name, mux_name ?: "", index); 455 + dev_err(dev, "%pOF: failed to get mux-control %s(%i)\n", 456 + np, mux_name ?: "", index); 457 457 return ERR_PTR(ret); 458 458 } 459 459 ··· 464 464 465 465 if (args.args_count > 1 || 466 466 (!args.args_count && (mux_chip->controllers > 1))) { 467 - dev_err(dev, "%s: wrong #mux-control-cells for %s\n", 468 - np->full_name, args.np->full_name); 467 + dev_err(dev, "%pOF: wrong #mux-control-cells for %pOF\n", 468 + np, args.np); 469 469 return ERR_PTR(-EINVAL); 470 470 } 471 471 ··· 474 474 controller = args.args[0]; 475 475 476 476 if (controller >= mux_chip->controllers) { 477 - dev_err(dev, "%s: bad mux controller %u specified in %s\n", 478 - np->full_name, controller, args.np->full_name); 477 + dev_err(dev, "%pOF: bad mux controller %u specified in %pOF\n", 478 + np, controller, args.np); 479 479 return ERR_PTR(-EINVAL); 480 480 } 481 481