OSDN Git Service

cpufreq: qcom-kryo: make some variables static
authorYangtao Li <tiny.windzz@gmail.com>
Mon, 4 Feb 2019 06:13:10 +0000 (01:13 -0500)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 Feb 2019 04:31:51 +0000 (10:01 +0530)
The variables are local to the source and do not
need to be in global scope, so make them static.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-kryo.c

index 2a3675c..1c8583c 100644 (file)
@@ -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)
 {