diff mbox

leds: Convert to using %pOF instead of full_name

Message ID 20170718214339.7774-31-robh@kernel.org
State Accepted
Commit 0571753e65b5bf7fe9a50004e9e1367cc4e51d0a
Headers show

Commit Message

Rob Herring (Arm) July 18, 2017, 9:43 p.m. UTC
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(-)

--
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Pavel Machek Aug. 8, 2017, 8:09 a.m. UTC | #1
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
Jacek Anaszewski Aug. 12, 2017, 10:32 p.m. UTC | #2
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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;