Skip to content

Commit f86b775

Browse files
committed
backlight: pm8941: 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. Cc: Lee Jones <[email protected]> Cc: Daniel Thompson <[email protected]> Cc: Jingoo Han <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent c86f985 commit f86b775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/pm8941-wled.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static int pm8941_wled_configure(struct pm8941_wled *wled, struct device *dev)
330330

331331
rc = of_property_read_string(dev->of_node, "label", &wled->name);
332332
if (rc)
333-
wled->name = dev->of_node->name;
333+
wled->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn", dev->of_node);
334334

335335
*cfg = pm8941_wled_config_defaults;
336336
for (i = 0; i < ARRAY_SIZE(u32_opts); ++i) {

0 commit comments

Comments
 (0)