From: Soomin Kim Date: Sun, 14 Aug 2016 12:05:09 +0000 (+0900) Subject: [COMMON] thermal: isp_cooling: Change function name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2c199c8d3c501f9af1b7f298657e0f040fa7df4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: isp_cooling: Change function name Since isp_cooling_get_fps() returns isp cooling level, function name isn't matched with its operation. So, change its function name to isp_cooling_get_level(). Change-Id: Ia3933149ae7ea3b403bb3b64554c52c10bea982d Signed-off-by: Soomin Kim --- diff --git a/drivers/thermal/isp_cooling.c b/drivers/thermal/isp_cooling.c index 4d411d2dc373..7353481ec84c 100644 --- a/drivers/thermal/isp_cooling.c +++ b/drivers/thermal/isp_cooling.c @@ -201,7 +201,7 @@ static int get_property(unsigned int isp, unsigned long input, * Return: The matched cooling level on success or THERMAL_CSTATE_INVALID * otherwise. */ -unsigned long isp_cooling_get_fps(unsigned int isp, unsigned int fps) +unsigned long isp_cooling_get_level(unsigned int isp, unsigned int fps) { unsigned int val; @@ -210,7 +210,7 @@ unsigned long isp_cooling_get_fps(unsigned int isp, unsigned int fps) return (unsigned long)val; } -EXPORT_SYMBOL_GPL(isp_cooling_get_fps); +EXPORT_SYMBOL_GPL(isp_cooling_get_level); /** * isp_apply_cooling - function to apply fps clipping. diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 3c2ff8e8d40e..0a87435d7d5c 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -590,7 +590,7 @@ thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data, level = gpufreq_cooling_get_level(0, freq); break; case ISP : - level = isp_cooling_get_fps(0, freq); + level = isp_cooling_get_level(0, freq); break; case MNGS_DUAL : level = cpufreq_cooling_get_level(4, freq); diff --git a/include/linux/isp_cooling.h b/include/linux/isp_cooling.h index 52b2efd5f50b..74de3ae80484 100644 --- a/include/linux/isp_cooling.h +++ b/include/linux/isp_cooling.h @@ -101,7 +101,7 @@ of_isp_cooling_register(struct device_node *np, */ void isp_cooling_unregister(struct thermal_cooling_device *cdev); -unsigned long isp_cooling_get_fps(unsigned int isp, unsigned int fps); +unsigned long isp_cooling_get_level(unsigned int isp, unsigned int fps); #else /* !CONFIG_GPU_THERMAL */ static inline struct thermal_cooling_device * isp_cooling_register(const struct cpumask *clip_gpus) @@ -120,7 +120,7 @@ void isp_cooling_unregister(struct thermal_cooling_device *cdev) return; } static inline -unsigned long isp_cooling_get_fps(unsigned int isp, unsigned int fps) +unsigned long isp_cooling_get_level(unsigned int isp, unsigned int fps) { return THERMAL_CSTATE_INVALID; }