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>
Этот коммит содержится в:

коммит произвёл
Guenter Roeck

родитель
23d3f131bf
Коммит
0debe4d0b8
@@ -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;
|
||||
}
|
||||
|
||||
|
Ссылка в новой задаче
Block a user