public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leds: Convert to using %pOF instead of full_name
@ 2017-07-18 21:43 Rob Herring
  2017-08-08  8:09 ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2017-07-18 21:43 UTC (permalink / raw)
  To: Richard Purdie, Jacek Anaszewski, Pavel Machek
  Cc: linux-kernel, devicetree, linux-leds

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: Richard Purdie <rpurdie@rpsys.net>
Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: linux-leds@vger.kernel.org
---
 drivers/leds/leds-is31fl32xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c
index 478844c5cead..31a9d749c8be 100644
--- a/drivers/leds/leds-is31fl32xx.c
+++ b/drivers/leds/leds-is31fl32xx.c
@@ -348,8 +348,8 @@ static int is31fl32xx_parse_child_dt(const struct device *dev,
 	ret = of_property_read_u32(child, "reg", &reg);
 	if (ret || reg < 1 || reg > led_data->priv->cdef->channels) {
 		dev_err(dev,
-			"Child node %s does not have a valid reg property\n",
-			child->full_name);
+			"Child node %pOF does not have a valid reg property\n",
+			child);
 		return -EINVAL;
 	}
 	led_data->channel = reg;
--
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] leds: Convert to using %pOF instead of full_name
  2017-07-18 21:43 [PATCH] leds: Convert to using %pOF instead of full_name Rob Herring
@ 2017-08-08  8:09 ` Pavel Machek
  2017-08-12 22:32   ` Jacek Anaszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2017-08-08  8:09 UTC (permalink / raw)
  To: Rob Herring
  Cc: Richard Purdie, Jacek Anaszewski, linux-kernel, devicetree,
	linux-leds

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

On Tue 2017-07-18 16:43:11, 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: Richard Purdie <rpurdie@rpsys.net>
> Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] leds: Convert to using %pOF instead of full_name
  2017-08-08  8:09 ` Pavel Machek
@ 2017-08-12 22:32   ` Jacek Anaszewski
  0 siblings, 0 replies; 3+ messages in thread
From: Jacek Anaszewski @ 2017-08-12 22:32 UTC (permalink / raw)
  To: Pavel Machek, Rob Herring
  Cc: Richard Purdie, linux-kernel, devicetree, linux-leds

On 08/08/2017 10:09 AM, Pavel Machek wrote:
> On Tue 2017-07-18 16:43:11, 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: Richard Purdie <rpurdie@rpsys.net>
>> Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
> 
> Acked-by: Pavel Machek <pavel@ucw.cz>
> 

Applied, thanks.

-- 
Best regards,
Jacek Anaszewski

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-12 22:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18 21:43 [PATCH] leds: Convert to using %pOF instead of full_name Rob Herring
2017-08-08  8:09 ` Pavel Machek
2017-08-12 22:32   ` Jacek Anaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox