[COMMON] thermal: isp_cooling: Change function name
authorSoomin Kim <sm8326.kim@samsung.com>
Sun, 14 Aug 2016 12:05:09 +0000 (21:05 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:19 +0000 (17:13 +0900)
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 <sm8326.kim@samsung.com>
drivers/thermal/isp_cooling.c
drivers/thermal/of-thermal.c
include/linux/isp_cooling.h

index 4d411d2dc37320c671ac45f552040e8d8367274e..7353481ec84cd73a670ddbb52ceee1efc82b572b 100644 (file)
@@ -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.
index 3c2ff8e8d40e2ef8b70aa90c1adcee8fff8236e2..0a87435d7d5c25561145146524931a3cb05d6111 100644 (file)
@@ -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);
index 52b2efd5f50b9b8e6c62daf516dd4e29935ffd41..74de3ae80484d60f10ecf525a95bde8c8024b9bd 100644 (file)
@@ -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;
 }