summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ibmpowernv.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-28 04:52:21 +0300
committerGuenter Roeck <linux@roeck-us.net>2018-10-11 06:37:13 +0300
commit0debe4d0b86afa5eb9192595c820ed980cabe38b (patch)
treeedf7ba6d6303f13785251763131ec3e658d0e7d7 /drivers/hwmon/ibmpowernv.c
parent23d3f131bf379b9460d2f079f0eb85ac669eded4 (diff)
downloadlinux-0debe4d0b86afa5eb9192595c820ed980cabe38b.tar.xz
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.c4
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;
}