Skip to content

Commit 33fe1cb

Browse files
committed
cpufreq: tegra194: Staticize struct tegra_cpufreq_soc instances
Fix sparse warnings by marking these structures static. Fixes: 273bc89 ("cpufreq: tegra194: Add support for Tegra234") Reported-by: kernel test robot <[email protected]> Reviewed-by: Sumit Gupta <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 172a672 commit 33fe1cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/cpufreq/tegra194-cpufreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static struct tegra_cpufreq_ops tegra234_cpufreq_ops = {
162162
.set_cpu_ndiv = tegra234_set_cpu_ndiv,
163163
};
164164

165-
const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
165+
static const struct tegra_cpufreq_soc tegra234_cpufreq_soc = {
166166
.ops = &tegra234_cpufreq_ops,
167167
.actmon_cntr_base = 0x9000,
168168
.maxcpus_per_cluster = 4,
@@ -430,7 +430,7 @@ static struct tegra_cpufreq_ops tegra194_cpufreq_ops = {
430430
.set_cpu_ndiv = tegra194_set_cpu_ndiv,
431431
};
432432

433-
const struct tegra_cpufreq_soc tegra194_cpufreq_soc = {
433+
static const struct tegra_cpufreq_soc tegra194_cpufreq_soc = {
434434
.ops = &tegra194_cpufreq_ops,
435435
.maxcpus_per_cluster = 2,
436436
};

0 commit comments

Comments
 (0)