1
1

airoha: cpufreq: fix function signature

Between the upgrade from 6.12 to 6.18, the airoha-cpufreq driver
now has a `-Wincompatible-pointer-types` error while building due
to the `802-OPP-Provide-old-opp-to-config_clks-on-_set_opp` patch.

This patch revises the driver with the proper signature.

Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
Link: https://github.com/openwrt/openwrt/pull/21019
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Kenneth Kasilag 2026-04-02 06:14:36 +00:00 committed by Jonas Jelonek
parent 298db2f5a7
commit 32f8390975
No known key found for this signature in database

View File

@ -132,3 +132,15 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
/**
* ufshcd_set_variant - set variant specific data to the hba
* @hba: per adapter instance
--- a/drivers/cpufreq/airoha-cpufreq.c
+++ b/drivers/cpufreq/airoha-cpufreq.c
@@ -21,7 +21,8 @@ static struct platform_device *cpufreq_p
/* NOP function to disable OPP from setting clock */
static int airoha_cpufreq_config_clks_nop(struct device *dev,
struct opp_table *opp_table,
- struct dev_pm_opp *opp,
+ struct dev_pm_opp *old_opp,
+ struct dev_pm_opp *new_opp,
void *data, bool scaling_down)
{
return 0;