Commit 0571753e authored by Rob Herring's avatar Rob Herring Committed by Jacek Anaszewski

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.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent 7358df4d
...@@ -348,8 +348,8 @@ static int is31fl32xx_parse_child_dt(const struct device *dev, ...@@ -348,8 +348,8 @@ static int is31fl32xx_parse_child_dt(const struct device *dev,
ret = of_property_read_u32(child, "reg", &reg); ret = of_property_read_u32(child, "reg", &reg);
if (ret || reg < 1 || reg > led_data->priv->cdef->channels) { if (ret || reg < 1 || reg > led_data->priv->cdef->channels) {
dev_err(dev, dev_err(dev,
"Child node %s does not have a valid reg property\n", "Child node %pOF does not have a valid reg property\n",
child->full_name); child);
return -EINVAL; return -EINVAL;
} }
led_data->channel = reg; led_data->channel = reg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment