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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Has a struct devfreq pointer now.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@xxxxxxxxx>
---
 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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux