leds: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:43:11 +0000 (16:43 -0500)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Sat, 12 Aug 2017 21:50:07 +0000 (23:50 +0200)
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>
drivers/leds/leds-is31fl32xx.c

index 478844c5cead1c707caa1eabb2ed7165e2c9e679..31a9d749c8be5931427889ba00e48699765e3f2a 100644 (file)
@@ -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;