gpu: arm: midgard: r12p0_04rel0: Fix build error for power model callbacks
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 9 Aug 2017 06:21:48 +0000 (15:21 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Sep 2017 10:24:02 +0000 (19:24 +0900)
The commit 489b687c3e1f ("devfreq_cooling: pass a pointer to devfreq
in the power model callbacks") changes the parameters for power model
callbacks. This patch fixes the build error.

Change-Id: I3cb2c9f3ecb97b0c4662009c1a7dfcff6dfc423e
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c

index f536fe69fc1eaec600ed000b47b4f3a348553a21..811558d1cab31556f6862adffb80cef58ef3ce8b 100644 (file)
@@ -34,7 +34,7 @@ static u32 static_coefficient;
 static s32 ts[4];
 static struct thermal_zone_device *gpu_tz;
 
-static unsigned long model_static_power(unsigned long voltage)
+static unsigned long model_static_power(struct devfreq *df, unsigned long voltage)
 {
        unsigned int temperature, temp;
        unsigned long temp_squared, temp_cubed, temp_scaling_factor;
@@ -70,7 +70,7 @@ static unsigned long model_static_power(unsigned long voltage)
                                / 1000000;
 }
 
-static unsigned long model_dynamic_power(unsigned long freq,
+static unsigned long model_dynamic_power(struct devfreq *df, unsigned long freq,
                unsigned long voltage)
 {
        /* The inputs: freq (f) is in Hz, and voltage (v) in mV.