diff options
| author | Rob Herring <[email protected]> | 2018-08-27 20:03:42 -0500 |
|---|---|---|
| committer | Rob Herring <[email protected]> | 2018-11-27 10:55:37 -0600 |
| commit | f86b77583d88c8402e8d89a339d96f847318f8a8 (patch) | |
| tree | 0bbb89ea7d05e0675d85f6c2916a617572f9e146 | |
| parent | c86f98544f234e64bb53558545782c24e78d5c49 (diff) | |
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]>
| -rw-r--r-- | drivers/video/backlight/pm8941-wled.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/pm8941-wled.c b/drivers/video/backlight/pm8941-wled.c index 0b6d21955d91..da6aab20fdcb 100644 --- a/drivers/video/backlight/pm8941-wled.c +++ b/drivers/video/backlight/pm8941-wled.c @@ -330,7 +330,7 @@ static int pm8941_wled_configure(struct pm8941_wled *wled, struct device *dev) rc = of_property_read_string(dev->of_node, "label", &wled->name); if (rc) - wled->name = dev->of_node->name; + wled->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn", dev->of_node); *cfg = pm8941_wled_config_defaults; for (i = 0; i < ARRAY_SIZE(u32_opts); ++i) { |