Commit c398bc9b authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman

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: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c9c4ae6
...@@ -452,8 +452,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name) ...@@ -452,8 +452,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
"mux-controls", "#mux-control-cells", "mux-controls", "#mux-control-cells",
index, &args); index, &args);
if (ret) { if (ret) {
dev_err(dev, "%s: failed to get mux-control %s(%i)\n", dev_err(dev, "%pOF: failed to get mux-control %s(%i)\n",
np->full_name, mux_name ?: "", index); np, mux_name ?: "", index);
return ERR_PTR(ret); return ERR_PTR(ret);
} }
...@@ -464,8 +464,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name) ...@@ -464,8 +464,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
if (args.args_count > 1 || if (args.args_count > 1 ||
(!args.args_count && (mux_chip->controllers > 1))) { (!args.args_count && (mux_chip->controllers > 1))) {
dev_err(dev, "%s: wrong #mux-control-cells for %s\n", dev_err(dev, "%pOF: wrong #mux-control-cells for %pOF\n",
np->full_name, args.np->full_name); np, args.np);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
...@@ -474,8 +474,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name) ...@@ -474,8 +474,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
controller = args.args[0]; controller = args.args[0];
if (controller >= mux_chip->controllers) { if (controller >= mux_chip->controllers) {
dev_err(dev, "%s: bad mux controller %u specified in %s\n", dev_err(dev, "%pOF: bad mux controller %u specified in %pOF\n",
np->full_name, controller, args.np->full_name); np, controller, args.np);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment