]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: cpufreq: fix function signature
authorKenneth Kasilag <kenneth@kasilag.me>
Thu, 2 Apr 2026 06:14:36 +0000 (06:14 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 3 Jun 2026 07:06:34 +0000 (09:06 +0200)
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>
target/linux/generic/pending-6.18/802-OPP-Provide-old-opp-to-config_clks-on-_set_opp.patch

index d645c14eaa3b7b18b176d83c6dc206c8506a0cbd..9487be162c9eada26fe7e20342d42429e95f512e 100644 (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;