Skip to contentSkip to conversation

cpufreq: qcom-kryo: make some variables static

PATCH Applied Yangtao Li 2 participants 2 messages Feb 4, 2019

Subsystems (2)
lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

PATCH 1/1 cpufreq: qcom-kryo: make some variables static

The variables are local to the source and do not
need to be in global scope, so make them static.

---
 drivers/cpufreq/qcom-cpufreq-kryo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/qcom-cpufreq-kryo.c +1 -1
index 2a3675c24032..1c8583cc06a2 100644
@@ -42,7 +42,7 @@ enum _msm8996_version {
 	NUM_OF_MSM8996_VERSIONS,
 };
 
-struct platform_device *cpufreq_dt_pdev, *kryo_cpufreq_pdev;
+static struct platform_device *cpufreq_dt_pdev, *kryo_cpufreq_pdev;
 
 static enum _msm8996_version qcom_cpufreq_kryo_get_msm_id(void)
 {
Signature · 1 line
2.17.0
maintainer Applied
#1 lore raw
Quoted 13 lines · Yangtao Li

The variables are local to the source and do not
need to be in global scope, so make them static.

---
 drivers/cpufreq/qcom-cpufreq-kryo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/qcom-cpufreq-kryo.c +0 -0
index 2a3675c24032..1c8583cc06a2 100644

drivers/cpufreq/qcom-cpufreq-kryo.c enum _msm8996_version { · line 48

Quoted 8 lines
drivers/cpufreq/qcom-cpufreq-kryo.c +1 -1
@@ -42,7 +42,7 @@ enum _msm8996_version {
 	NUM_OF_MSM8996_VERSIONS,
 };
 
-struct platform_device *cpufreq_dt_pdev, *kryo_cpufreq_pdev;
+static struct platform_device *cpufreq_dt_pdev, *kryo_cpufreq_pdev;
 
 static enum _msm8996_version qcom_cpufreq_kryo_get_msm_id(void)
 {

Applied. Thanks.

Signature · 1 line
viresh