mirror of https://gitee.com/openkylin/linux.git
thermal: 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: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: linux-pm@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
be6af481f3
commit
9b96566063
|
@ -506,8 +506,8 @@ thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data,
|
||||||
if (sensor_specs.args_count >= 1) {
|
if (sensor_specs.args_count >= 1) {
|
||||||
id = sensor_specs.args[0];
|
id = sensor_specs.args[0];
|
||||||
WARN(sensor_specs.args_count > 1,
|
WARN(sensor_specs.args_count > 1,
|
||||||
"%s: too many cells in sensor specifier %d\n",
|
"%pOFn: too many cells in sensor specifier %d\n",
|
||||||
sensor_specs.np->name, sensor_specs.args_count);
|
sensor_specs.np, sensor_specs.args_count);
|
||||||
} else {
|
} else {
|
||||||
id = 0;
|
id = 0;
|
||||||
}
|
}
|
||||||
|
@ -1024,8 +1024,8 @@ int __init of_parse_thermal_zones(void)
|
||||||
|
|
||||||
tz = thermal_of_build_thermal_zone(child);
|
tz = thermal_of_build_thermal_zone(child);
|
||||||
if (IS_ERR(tz)) {
|
if (IS_ERR(tz)) {
|
||||||
pr_err("failed to build thermal zone %s: %ld\n",
|
pr_err("failed to build thermal zone %pOFn: %ld\n",
|
||||||
child->name,
|
child,
|
||||||
PTR_ERR(tz));
|
PTR_ERR(tz));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1059,7 +1059,7 @@ int __init of_parse_thermal_zones(void)
|
||||||
tz->passive_delay,
|
tz->passive_delay,
|
||||||
tz->polling_delay);
|
tz->polling_delay);
|
||||||
if (IS_ERR(zone)) {
|
if (IS_ERR(zone)) {
|
||||||
pr_err("Failed to build %s zone %ld\n", child->name,
|
pr_err("Failed to build %pOFn zone %ld\n", child,
|
||||||
PTR_ERR(zone));
|
PTR_ERR(zone));
|
||||||
kfree(tzp);
|
kfree(tzp);
|
||||||
kfree(ops);
|
kfree(ops);
|
||||||
|
|
|
@ -129,8 +129,8 @@ static int qoriq_tmu_get_sensor_id(void)
|
||||||
if (sensor_specs.args_count >= 1) {
|
if (sensor_specs.args_count >= 1) {
|
||||||
id = sensor_specs.args[0];
|
id = sensor_specs.args[0];
|
||||||
WARN(sensor_specs.args_count > 1,
|
WARN(sensor_specs.args_count > 1,
|
||||||
"%s: too many cells in sensor specifier %d\n",
|
"%pOFn: too many cells in sensor specifier %d\n",
|
||||||
sensor_specs.np->name, sensor_specs.args_count);
|
sensor_specs.np, sensor_specs.args_count);
|
||||||
} else {
|
} else {
|
||||||
id = 0;
|
id = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue