From: Kenneth Kasilag Date: Thu, 2 Apr 2026 06:14:36 +0000 (+0000) Subject: airoha: cpufreq: fix function signature X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32f83909754e3740d84b64bdcc56e07ab8d65296;p=thirdparty%2Fopenwrt.git 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 Link: https://github.com/openwrt/openwrt/pull/21019 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/generic/pending-6.18/802-OPP-Provide-old-opp-to-config_clks-on-_set_opp.patch b/target/linux/generic/pending-6.18/802-OPP-Provide-old-opp-to-config_clks-on-_set_opp.patch index d645c14eaa3..9487be162c9 100644 --- a/target/linux/generic/pending-6.18/802-OPP-Provide-old-opp-to-config_clks-on-_set_opp.patch +++ b/target/linux/generic/pending-6.18/802-OPP-Provide-old-opp-to-config_clks-on-_set_opp.patch @@ -132,3 +132,15 @@ Signed-off-by: Christian Marangi /** * 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;