* [PATCH] mux: Convert to using %pOF instead of full_name
@ 2017-07-18 21:43 Rob Herring
[not found] ` <20170718214339.7774-38-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2017-07-18 21:43 UTC (permalink / raw)
To: Peter Rosin; +Cc: linux-kernel, devicetree
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>
Cc: Peter Rosin <peda@axentia.se>
---
drivers/mux/mux-core.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
index 90b8995f07cb..bef3fe1df670 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);
}
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mux: Convert to using %pOF instead of full_name
2017-07-18 21:43 [PATCH] mux: Convert to using %pOF instead of full_name Rob Herring
@ 2017-07-31 9:12 ` Peter Rosin
0 siblings, 0 replies; 4+ messages in thread
From: Peter Rosin @ 2017-07-31 9:12 UTC (permalink / raw)
To: Rob Herring
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA
Hi Rob,
Works for me. I'll pass it on with the following subject nit fixed:
s/mux: Convert/mux: convert/
Cheers,
Peter
On 2017-07-18 23:43, Rob Herring wrote:
> 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-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Cc: Peter Rosin <peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org>
> ---
> drivers/mux/mux-core.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
> index 90b8995f07cb..bef3fe1df670 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);
> }
>
> --
> 2.11.0
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mux: Convert to using %pOF instead of full_name
@ 2017-07-31 9:12 ` Peter Rosin
0 siblings, 0 replies; 4+ messages in thread
From: Peter Rosin @ 2017-07-31 9:12 UTC (permalink / raw)
To: Rob Herring; +Cc: linux-kernel, devicetree
Hi Rob,
Works for me. I'll pass it on with the following subject nit fixed:
s/mux: Convert/mux: convert/
Cheers,
Peter
On 2017-07-18 23:43, Rob Herring wrote:
> 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>
> Cc: Peter Rosin <peda@axentia.se>
> ---
> drivers/mux/mux-core.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
> index 90b8995f07cb..bef3fe1df670 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);
> }
>
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] mux: convert to using %pOF instead of full_name
@ 2017-07-31 9:34 Peter Rosin
0 siblings, 0 replies; 4+ messages in thread
From: Peter Rosin @ 2017-07-31 9:34 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Rob Herring, linux-kernel, Peter Rosin
From: Rob Herring <robh@kernel.org>
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>
---
drivers/mux/mux-core.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Hi Greg,
In this case, I would have liked to just add an acked-by or
something, but since you were not a recipient of the original
message it felt like that would have created extra work for
you. How is this situation best handled?
Anyway, please add this to the queue for 4.14.
Cheers,
Peter
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);
}
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-31 9:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18 21:43 [PATCH] mux: Convert to using %pOF instead of full_name Rob Herring
[not found] ` <20170718214339.7774-38-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-07-31 9:12 ` Peter Rosin
2017-07-31 9:12 ` Peter Rosin
-- strict thread matches above, loose matches on Subject: below --
2017-07-31 9:34 [PATCH] mux: convert " Peter Rosin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.