diff mbox

[POC,01/16] drm/img-rogue: fix signatures of struct devfreq_cooling_power ops

Message ID 1510759463-30201-2-git-send-email-ulrich.hecht+renesas@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ulrich Hecht Nov. 15, 2017, 3:24 p.m. UTC
Has a struct devfreq pointer now.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
 drivers/gpu/drm/img-rogue/1.6/mt8173/mt8173_sysconfig.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

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)