leds: Convert to using %pOF instead of full_name
PATCH 1/1 leds: 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.
--- drivers/leds/leds-is31fl32xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/leds/leds-is31fl32xx.c +2 -2
@@ -348,8 +348,8 @@ static int is31fl32xx_parse_child_dt(const struct device *dev, ret =of_property_read_u32 (child,"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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc Richard Purdie <rpurdie-Fm38FmjxZ/[email protected]>Cc Jacek Anaszewski <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Jacek Anaszewski
AppliedQuoted 11 lines · Pavel Machek
Quoted 7 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc Richard Purdie <rpurdie-Fm38FmjxZ/[email protected]>Cc Jacek Anaszewski <[email protected]>Acked-by Pavel Machek <[email protected]>
Applied, thanks.
Signature · 6 lines
Best regards, Jacek Anaszewski -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html