diff mbox series

[-next] cpufreq: tegra194: change tegra239_cpufreq_soc to static

Message ID 20220923145016.109173-1-yangyingliang@huawei.com
State Accepted
Commit f991b117120569838676b9512f6e7d755fdfc12b
Headers show
Series [-next] cpufreq: tegra194: change tegra239_cpufreq_soc to static | expand

Commit Message

Yang Yingliang Sept. 23, 2022, 2:50 p.m. UTC
tegra239_cpufreq_soc is only used in tegra194-cpufreq.c now, change it
to static.

Fixes: 676886010707 ("cpufreq: tegra194: Add support for Tegra239")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/cpufreq/tegra194-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Viresh Kumar Sept. 26, 2022, 5:43 a.m. UTC | #1
On 23-09-22, 22:50, Yang Yingliang wrote:
> tegra239_cpufreq_soc is only used in tegra194-cpufreq.c now, change it
> to static.
> 
> Fixes: 676886010707 ("cpufreq: tegra194: Add support for Tegra239")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  drivers/cpufreq/tegra194-cpufreq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c
> index cfc1b225f811..c2004cae3f02 100644
> --- a/drivers/cpufreq/tegra194-cpufreq.c
> +++ b/drivers/cpufreq/tegra194-cpufreq.c
> @@ -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.
diff mbox series

Patch

diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c
index cfc1b225f811..c2004cae3f02 100644
--- a/drivers/cpufreq/tegra194-cpufreq.c
+++ b/drivers/cpufreq/tegra194-cpufreq.c
@@ -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,