cpufreq: Convert to using %pOF instead of full_name
Subsystems (3)
PATCH 1/1 cpufreq: Convert to using %pOF instead of full_name
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node.
Signed-off-by Rob Herring <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Patrice Chotard <[email protected]>
Cc linux-pm at vger.kernel.org
Cc linuxppc-dev at lists.ozlabs.org
Cc linux-arm-kernel at lists.infradead.org
Cc kernel at stlinux.com
--- drivers/cpufreq/pmac64-cpufreq.c | 2 +- drivers/cpufreq/sti-cpufreq.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/cpufreq/pmac64-cpufreq.c +1 -1
@@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode) goto bail; } -DBG ("cpufreq: i2c clock chip found: %s\n" , hwclock->full_name); +DBG ("cpufreq: i2c clock chip found: %pOF\n" , hwclock);/* Now get all the platform functions */ pfunc_cpu_getfreq =
drivers/cpufreq/sti-cpufreq.c +4 -4
@@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) { ret =of_property_read_u32_index (np,"st,syscfg" ,MAJOR_ID_INDEX , &major_offset);if (ret) { -dev_err (dev,"No major number offset provided in %s [%d]\n" , - np->full_name, ret); +dev_err (dev,"No major number offset provided in %pOF [%d]\n" , + np, ret);return ret; }
@@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void) MINOR_ID_INDEX, &minor_offset);if (ret) {dev_err (dev, -"No minor number offset provided %s [%d]\n" , - np->full_name, ret); +"No minor number offset provided %pOF [%d]\n" , + np, ret);return ret; }
--
2.11.0
Quoted 49 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc Michael Ellerman <[email protected]>Cc Patrice Chotard <[email protected]>Cc linux-pm at vger.kernel.orgCc linuxppc-dev at lists.ozlabs.orgCc linux-arm-kernel at lists.infradead.orgCc kernel at stlinux.com--- drivers/cpufreq/pmac64-cpufreq.c | 2 +- drivers/cpufreq/sti-cpufreq.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)drivers/cpufreq/pmac64-cpufreq.c +1
-1@@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode) goto bail; } -DBG ("cpufreq: i2c clock chip found: %s\n" , hwclock->full_name); +DBG ("cpufreq: i2c clock chip found: %pOF\n" , hwclock);/* Now get all the platform functions */ pfunc_cpu_getfreq =drivers/cpufreq/sti-cpufreq.c +2
-2@@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) { ret =of_property_read_u32_index (np,"st,syscfg" ,MAJOR_ID_INDEX , &major_offset);if (ret) { -dev_err (dev,"No major number offset provided in %s [%d]\n" , - np->full_name, ret); +dev_err (dev,"No major number offset provided in %pOF [%d]\n" , + np, ret);return ret; }
drivers/cpufreq/sti-cpufreq.c static int sti_cpufreq_fetch_minor(void) · line 98
Quoted 9 lines
drivers/cpufreq/sti-cpufreq.c +2
-2@@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void) MINOR_ID_INDEX, &minor_offset);if (ret) {dev_err (dev, -"No minor number offset provided %s [%d]\n" , - np->full_name, ret); +"No minor number offset provided %pOF [%d]\n" , + np, ret);return ret; }
Acked-by Viresh Kumar <[email protected]>
Signature · 1 line
viresh
Quoted 60 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc Michael Ellerman <[email protected]>Cc Patrice Chotard <[email protected]>Cc linux-pm at vger.kernel.orgCc linuxppc-dev at lists.ozlabs.orgCc linux-arm-kernel at lists.infradead.orgCc kernel at stlinux.com--- drivers/cpufreq/pmac64-cpufreq.c | 2 +- drivers/cpufreq/sti-cpufreq.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)drivers/cpufreq/pmac64-cpufreq.c +1
-1@@ -516,7 +516,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode) goto bail; } -DBG ("cpufreq: i2c clock chip found: %s\n" , hwclock->full_name); +DBG ("cpufreq: i2c clock chip found: %pOF\n" , hwclock);/* Now get all the platform functions */ pfunc_cpu_getfreq =drivers/cpufreq/sti-cpufreq.c +4
-5@@ -65,8 +65,8 @@ static int sti_cpufreq_fetch_major(void) { ret =of_property_read_u32_index (np,"st,syscfg" ,MAJOR_ID_INDEX , &major_offset);if (ret) { -dev_err (dev,"No major number offset provided in %s [%d]\n" , - np->full_name, ret); +dev_err (dev,"No major number offset provided in %pOF [%d]\n" , + np, ret);return ret; }@@ -92,8 +92,8 @@ static int sti_cpufreq_fetch_minor(void) MINOR_ID_INDEX, &minor_offset);if (ret) {dev_err (dev, -"No minor number offset provided %s [%d]\n" , - np->full_name, ret); +"No minor number offset provided %pOF [%d]\n" , + np, ret);return ret; } --
Quoted 2 lines
2.11.0
For ST cpufreq:
Acked-by Patrice Chotard <[email protected]>
Thanks