summaryrefslogtreecommitdiffstats
path: root/drivers/mux
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-08-22 08:27:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:11:28 +0200
commitc398bc9b05a84ceadacbc405fe33535fd4826c6c (patch)
treeb008dc3d47723c373e18c1ea920286b758fb643a /drivers/mux
parent2c9c4ae6573a3f4c270e8a35cd71700d3b802ea8 (diff)
downloadlinux-stable-c398bc9b05a84ceadacbc405fe33535fd4826c6c.tar.gz
linux-stable-c398bc9b05a84ceadacbc405fe33535fd4826c6c.tar.bz2
linux-stable-c398bc9b05a84ceadacbc405fe33535fd4826c6c.zip
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>
Diffstat (limited to 'drivers/mux')
-rw-r--r--drivers/mux/mux-core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
index 2fe96c470112..aabfb1549d4e 100644
--- a/drivers/mux/mux-core.c
+++ b/drivers/mux/mux-core.c
@@ -452,8 +452,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
"mux-controls", "#mux-control-cells",
index, &args);
if (ret) {
- dev_err(dev, "%s: failed to get mux-control %s(%i)\n",
- np->full_name, mux_name ?: "", index);
+ dev_err(dev, "%pOF: failed to get mux-control %s(%i)\n",
+ np, mux_name ?: "", index);
return ERR_PTR(ret);
}
@@ -464,8 +464,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
if (args.args_count > 1 ||
(!args.args_count && (mux_chip->controllers > 1))) {
- dev_err(dev, "%s: wrong #mux-control-cells for %s\n",
- np->full_name, args.np->full_name);
+ dev_err(dev, "%pOF: wrong #mux-control-cells for %pOF\n",
+ np, args.np);
return ERR_PTR(-EINVAL);
}
@@ -474,8 +474,8 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name)
controller = args.args[0];
if (controller >= mux_chip->controllers) {
- dev_err(dev, "%s: bad mux controller %u specified in %s\n",
- np->full_name, controller, args.np->full_name);
+ dev_err(dev, "%pOF: bad mux controller %u specified in %pOF\n",
+ np, controller, args.np);
return ERR_PTR(-EINVAL);
}