From: Chanwoo Choi Date: Wed, 9 Aug 2017 06:21:48 +0000 (+0900) Subject: gpu: arm: midgard: r12p0_04rel0: Fix build error for power model callbacks X-Git-Tag: submit/tizen_4.0/20170920.004041~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=094dd19310707c481ed0a8057f79ebf252be5a97;p=platform%2Fkernel%2Flinux-exynos.git gpu: arm: midgard: r12p0_04rel0: Fix build error for power model callbacks 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 --- diff --git a/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c b/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c index f536fe69fc1e..811558d1cab3 100644 --- a/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c +++ b/drivers/gpu/arm/midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c @@ -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.