[POC 01/16] drm/img-rogue: fix signatures of struct devfreq_cooling_power ops
Ulrich Hecht
ulrich.hecht+renesas at gmail.com
Wed Nov 15 15:24:08 UTC 2017
Has a struct devfreq pointer now.
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas at gmail.com>
---
drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c b/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c
index 14f7dcc..bbda6ff 100644
--- a/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c
+++ b/drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c
@@ -245,7 +245,8 @@ static u32 interpolate(int value, const int *x, const unsigned int *y, int len)
return ret;
}
-static unsigned long mtk_mfg_get_static_power(unsigned long voltage)
+static unsigned long mtk_mfg_get_static_power(struct devfreq *devfreq,
+ unsigned long voltage)
{
struct mtk_mfg *mfg = gsDevice.hSysData;
struct thermal_zone_device *tz = mfg->tz;
@@ -299,7 +300,8 @@ static unsigned long mtk_mfg_get_static_power(unsigned long voltage)
return power;
}
-static unsigned long mtk_mfg_get_dynamic_power(unsigned long freq,
+static unsigned long mtk_mfg_get_dynamic_power(struct devfreq *devfreq,
+ unsigned long freq,
unsigned long voltage)
{
#define NUM_RANGE ARRAY_SIZE(f_range)
--
2.7.4
More information about the dri-devel
mailing list