From 094dd19310707c481ed0a8057f79ebf252be5a97 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 9 Aug 2017 15:21:48 +0900 Subject: [PATCH] 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 --- .../midgard/r12p0_04rel0/backend/gpu/mali_kbase_power_model_simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f536fe6..811558d 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. -- 2.7.4