From: Rob Herring Date: Tue, 28 Aug 2018 01:52:26 +0000 (-0500) Subject: leds: Convert to using %pOFn instead of device_node.name X-Git-Tag: v5.4-rc1~2241^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f813eec972ee32f69e3a8be3512cb6ba266d7d64;p=platform%2Fkernel%2Flinux-rpi.git leds: Convert to using %pOFn instead of device_node.name In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Signed-off-by: Rob Herring Cc: linux-leds@vger.kernel.org Acked-by: Sakari Ailus Acked-by: Pavel Machek Signed-off-by: Jacek Anaszewski --- diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c index f883616..98a69b1 100644 --- a/drivers/leds/leds-as3645a.c +++ b/drivers/leds/leds-as3645a.c @@ -529,7 +529,7 @@ static int as3645a_parse_node(struct as3645a *flash, strlcpy(names->flash, name, sizeof(names->flash)); else snprintf(names->flash, sizeof(names->flash), - "%s:flash", node->name); + "%pOFn:flash", node); rval = of_property_read_u32(flash->flash_node, "flash-timeout-us", &cfg->flash_timeout_us); @@ -573,7 +573,7 @@ static int as3645a_parse_node(struct as3645a *flash, strlcpy(names->indicator, name, sizeof(names->indicator)); else snprintf(names->indicator, sizeof(names->indicator), - "%s:indicator", node->name); + "%pOFn:indicator", node); rval = of_property_read_u32(flash->indicator_node, "led-max-microamp", &cfg->indicator_max_ua);