summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-is31fl32xx.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-07-18 23:43:11 +0200
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2017-08-12 23:50:07 +0200
commit0571753e65b5bf7fe9a50004e9e1367cc4e51d0a (patch)
tree20956b010b9337a181f41b490730a0e7aaee4d01 /drivers/leds/leds-is31fl32xx.c
parentleds: blinkm: constify attribute_group structures. (diff)
downloadlinux-0571753e65b5bf7fe9a50004e9e1367cc4e51d0a.tar.xz
linux-0571753e65b5bf7fe9a50004e9e1367cc4e51d0a.zip
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: Rob Herring <robh@kernel.org> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: linux-leds@vger.kernel.org Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds/leds-is31fl32xx.c')
-rw-r--r--drivers/leds/leds-is31fl32xx.c4
1 files 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;