]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: qcom-nvmem: drop pvs_ver for format a fuses
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 19 Oct 2023 10:50:08 +0000 (12:50 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 25 Oct 2023 10:20:51 +0000 (15:50 +0530)
The fuses used on msm8960 / apq8064 / ipq806x families of devices do not
have the pvs version. Drop this argument from parsing function.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c

index 12c87f24b43b11c37763314fca758762c8823455..ac8c36dc6a1f7bd92411fcfacd9d063daedac3bf 100644 (file)
@@ -73,7 +73,7 @@ static int qcom_cpufreq_simple_get_version(struct device *cpu_dev,
 }
 
 static void get_krait_bin_format_a(struct device *cpu_dev,
-                                         int *speed, int *pvs, int *pvs_ver,
+                                         int *speed, int *pvs,
                                          u8 *buf)
 {
        u32 pte_efuse;
@@ -204,8 +204,7 @@ static int qcom_cpufreq_krait_name_version(struct device *cpu_dev,
 
        switch (len) {
        case 4:
-               get_krait_bin_format_a(cpu_dev, &speed, &pvs, &pvs_ver,
-                                      speedbin);
+               get_krait_bin_format_a(cpu_dev, &speed, &pvs, speedbin);
                break;
        case 8:
                get_krait_bin_format_b(cpu_dev, &speed, &pvs, &pvs_ver,