cpufreq: qcom-kryo: make some variables static
Subsystems (2)
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.
Signed-off-by Yangtao Li <[email protected]>
--- drivers/cpufreq/qcom-cpufreq-kryo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 ) {
Signature · 1 line
2.17.0
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.Signed-off-by Yangtao Li <[email protected]>--- drivers/cpufreq/qcom-cpufreq-kryo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/qcom-cpufreq-kryo.c +0
-0
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