Skip to content

Commit c398bc9

Browse files
robherringgregkh
authored andcommitted
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>
1 parent 2c9c4ae commit c398bc9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎drivers/mux/mux-core.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
452452
"mux-controls", "#mux-control-cells",
453453
index, &args);
454454
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);
457457
return ERR_PTR(ret);
458458
}
459459

@@ -464,8 +464,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
464464

465465
if (args.args_count > 1 ||
466466
(!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);
469469
return ERR_PTR(-EINVAL);
470470
}
471471

@@ -474,8 +474,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
474474
controller = args.args[0];
475475

476476
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);
479479
return ERR_PTR(-EINVAL);
480480
}
481481

0 commit comments

Comments
 (0)