Skip to content

Commit a05887f

Browse files
Fabovireshk
authored andcommitted
cpufreq: qcom: remove unused parameter in function definition
The speedbin_nvmem parameter is not used for get_krait_bin_format_{a,b}. Let's remove the parameter to make the code cleaner. Signed-off-by: Fabien Parent <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 01039fb commit a05887f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/cpufreq/qcom-cpufreq-nvmem.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static struct platform_device *cpufreq_dt_pdev, *cpufreq_pdev;
6464

6565
static void get_krait_bin_format_a(struct device *cpu_dev,
6666
int *speed, int *pvs, int *pvs_ver,
67-
struct nvmem_cell *pvs_nvmem, u8 *buf)
67+
u8 *buf)
6868
{
6969
u32 pte_efuse;
7070

@@ -95,7 +95,7 @@ static void get_krait_bin_format_a(struct device *cpu_dev,
9595

9696
static void get_krait_bin_format_b(struct device *cpu_dev,
9797
int *speed, int *pvs, int *pvs_ver,
98-
struct nvmem_cell *pvs_nvmem, u8 *buf)
98+
u8 *buf)
9999
{
100100
u32 pte_efuse, redundant_sel;
101101

@@ -223,11 +223,11 @@ static int qcom_cpufreq_krait_name_version(struct device *cpu_dev,
223223
switch (len) {
224224
case 4:
225225
get_krait_bin_format_a(cpu_dev, &speed, &pvs, &pvs_ver,
226-
speedbin_nvmem, speedbin);
226+
speedbin);
227227
break;
228228
case 8:
229229
get_krait_bin_format_b(cpu_dev, &speed, &pvs, &pvs_ver,
230-
speedbin_nvmem, speedbin);
230+
speedbin);
231231
break;
232232
default:
233233
dev_err(cpu_dev, "Unable to read nvmem data. Defaulting to 0!\n");

0 commit comments

Comments
 (0)