* [PATCH] spmi: Convert to using %pOF instead of full_name
@ 2017-07-18 21:43 Rob Herring
2017-08-09 21:50 ` Rob Herring
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2017-07-18 21:43 UTC (permalink / raw)
To: Greg Kroah-Hartman; +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>
---
drivers/spmi/spmi.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c
index 2b9b0941d9eb..c14b4201210c 100644
--- a/drivers/spmi/spmi.c
+++ b/drivers/spmi/spmi.c
@@ -454,27 +454,25 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl)
struct spmi_device *sdev;
u32 reg[2];
- dev_dbg(&ctrl->dev, "adding child %s\n", node->full_name);
+ dev_dbg(&ctrl->dev, "adding child %pOF\n", node);
err = of_property_read_u32_array(node, "reg", reg, 2);
if (err) {
dev_err(&ctrl->dev,
- "node %s err (%d) does not have 'reg' property\n",
- node->full_name, err);
+ "node %pOF err (%d) does not have 'reg' property\n",
+ node, err);
continue;
}
if (reg[1] != SPMI_USID) {
dev_err(&ctrl->dev,
- "node %s contains unsupported 'reg' entry\n",
- node->full_name);
+ "node %pOF contains unsupported 'reg' entry\n",
+ node);
continue;
}
if (reg[0] >= SPMI_MAX_SLAVE_ID) {
- dev_err(&ctrl->dev,
- "invalid usid on node %s\n",
- node->full_name);
+ dev_err(&ctrl->dev, "invalid usid on node %pOF\n", node);
continue;
}
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] spmi: Convert to using %pOF instead of full_name
2017-07-18 21:43 [PATCH] spmi: Convert to using %pOF instead of full_name Rob Herring
@ 2017-08-09 21:50 ` Rob Herring
[not found] ` <CAL_Jsq+cNS5WYwc2riXNVrTDz9UnT7jMezrZJHmU0NX53gGCkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2017-08-09 21:50 UTC (permalink / raw)
To: Greg Kroah-Hartman, Stephen Boyd
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
+Stephen
On Tue, Jul 18, 2017 at 4:43 PM, Rob Herring <robh@kernel.org> 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>
> ---
> drivers/spmi/spmi.c | 14 ++++++--------
> 1 file chqanged, 6 insertions(+), 8 deletions(-)
Looks like I missed Stephen recently being added as maintainer. Do you
need me to resend this?
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] spmi: Convert to using %pOF instead of full_name
2017-08-09 21:50 ` Rob Herring
@ 2017-08-09 22:14 ` Stephen Boyd
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2017-08-09 22:14 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On 08/09/2017 02:50 PM, Rob Herring wrote:
> +Stephen
>
> On Tue, Jul 18, 2017 at 4:43 PM, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 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>
>> ---
>> drivers/spmi/spmi.c | 14 ++++++--------
>> 1 file chqanged, 6 insertions(+), 8 deletions(-)
> Looks like I missed Stephen recently being added as maintainer. Do you
> need me to resend this?
>
Greg is still applying the patches, unless he doesn't want to do it. I'm
just "R" for reviewer.
Reviewed-by: Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
--
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] spmi: Convert to using %pOF instead of full_name
@ 2017-08-09 22:14 ` Stephen Boyd
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2017-08-09 22:14 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
On 08/09/2017 02:50 PM, Rob Herring wrote:
> +Stephen
>
> On Tue, Jul 18, 2017 at 4:43 PM, Rob Herring <robh@kernel.org> 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>
>> ---
>> drivers/spmi/spmi.c | 14 ++++++--------
>> 1 file chqanged, 6 insertions(+), 8 deletions(-)
> Looks like I missed Stephen recently being added as maintainer. Do you
> need me to resend this?
>
Greg is still applying the patches, unless he doesn't want to do it. I'm
just "R" for reviewer.
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-09 22:14 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] spmi: Convert to using %pOF instead of full_name Rob Herring
2017-08-09 21:50 ` Rob Herring
[not found] ` <CAL_Jsq+cNS5WYwc2riXNVrTDz9UnT7jMezrZJHmU0NX53gGCkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-09 22:14 ` Stephen Boyd
2017-08-09 22:14 ` Stephen Boyd
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.