Skip to contentSkip to conversation

cpufreq: tegra194: change tegra239_cpufreq_soc to static

PATCH Applied Yang Yingliang 2 participants 2 messages Sep 23, 2022 – Sep 26, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: tegra194: change tegra239_cpufreq_soc to static

tegra239_cpufreq_soc is only used in tegra194-cpufreq.c now, change it to static.

Fixes 676886010707 ("cpufreq: tegra194: Add support for Tegra239")
---
 drivers/cpufreq/tegra194-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/tegra194-cpufreq.c +1 -1
index cfc1b225f811..c2004cae3f02 100644
@@ -161,7 +161,7 @@ static const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
 	.num_clusters = 3,
 };
 
-const struct tegra_cpufreq_soc tegra239_cpufreq_soc = {
+static const struct tegra_cpufreq_soc tegra239_cpufreq_soc = {
 	.ops = &tegra234_cpufreq_ops,
 	.actmon_cntr_base = 0x4000,
 	.maxcpus_per_cluster = 8,
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 14 lines · Yang Yingliang

tegra239_cpufreq_soc is only used in tegra194-cpufreq.c now, change it to static.

Fixes 676886010707 ("cpufreq: tegra194: Add support for Tegra239")
---
 drivers/cpufreq/tegra194-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/tegra194-cpufreq.c +0 -0
index cfc1b225f811..c2004cae3f02 100644

drivers/cpufreq/tegra194-cpufreq.c static const struct tegra_cpufreq_soc tegra234_cpufreq_soc = { · line 167

Quoted 8 lines
drivers/cpufreq/tegra194-cpufreq.c +1 -1
@@ -161,7 +161,7 @@ static const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
 	.num_clusters = 3,
 };
 
-const struct tegra_cpufreq_soc tegra239_cpufreq_soc = {
+static const struct tegra_cpufreq_soc tegra239_cpufreq_soc = {
 	.ops = &tegra234_cpufreq_ops,
 	.actmon_cntr_base = 0x4000,
 	.maxcpus_per_cluster = 8,

Applied. Thanks.

Signature · 1 line
viresh