diff options
author | Rob Herring <robh@kernel.org> | 2018-08-27 20:52:21 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-10-10 20:37:13 -0700 |
commit | 0debe4d0b86afa5eb9192595c820ed980cabe38b (patch) | |
tree | edf7ba6d6303f13785251763131ec3e658d0e7d7 /drivers/hwmon/ibmpowernv.c | |
parent | 23d3f131bf379b9460d2f079f0eb85ac669eded4 (diff) | |
download | linux-0debe4d0b86afa5eb9192595c820ed980cabe38b.tar.gz linux-0debe4d0b86afa5eb9192595c820ed980cabe38b.tar.bz2 linux-0debe4d0b86afa5eb9192595c820ed980cabe38b.zip |
hwmon: 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: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ibmpowernv.c')
-rw-r--r-- | drivers/hwmon/ibmpowernv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index 83472808c816..4935897f1527 100644 --- a/drivers/hwmon/ibmpowernv.c +++ b/drivers/hwmon/ibmpowernv.c @@ -603,8 +603,8 @@ static int create_device_attrs(struct platform_device *pdev) if (of_property_read_u32(np, "sensor-id", &sensor_id) && of_property_read_u32(np, "sensor-data", &sensor_id)) { dev_info(&pdev->dev, - "'sensor-id' missing in the node '%s'\n", - np->name); + "'sensor-id' missing in the node '%pOFn'\n", + np); continue; } |