[COMMON] thermal: samsung: Remove isp_cooling_table_init()
authorSoomin Kim <sm8326.kim@samsung.com>
Sun, 14 Aug 2016 12:36:17 +0000 (21:36 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:21 +0000 (17:13 +0900)
This function is moved to isp_cooling driver.

Change-Id: I68bde52bc88172ba93648eee039e5faabd6f1a61
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index 5d2db17ecf15a5c5e9c50d7ade5f54f6a99c7b6b..cc7ce46fe7b08e6a93330af88e0e848e6b9d938b 100644 (file)
@@ -1165,48 +1165,6 @@ static int gpu_cooling_table_init(struct platform_device *pdev)
 static int gpu_cooling_table_init(struct platform_device *pdev) {return 0;}
 #endif
 
-#ifdef CONFIG_ISP_THERMAL
-struct isp_fps_table isp_fps_table[10];
-
-static int isp_cooling_table_init(struct platform_device *pdev)
-{
-       struct isp_fps_table *table_ptr;
-       unsigned int table_size;
-       u32 isp_idx_num = 0;
-       int ret = 0, i = 0;
-
-       /* isp cooling frequency table parse */
-       ret = of_property_read_u32(pdev->dev.of_node, "isp_idx_num",
-                                       &isp_idx_num);
-       if (ret < 0)
-               dev_err(&pdev->dev, "isp_idx_num happend error value\n");
-
-       if (isp_idx_num) {
-               table_ptr = kzalloc(sizeof(struct isp_fps_table)
-                                               * isp_idx_num, GFP_KERNEL);
-               if (!table_ptr) {
-                       dev_err(&pdev->dev, "failed to allocate for isp_table\n");
-                       return -ENODEV;
-               }
-               table_size = sizeof(struct isp_fps_table) / sizeof(unsigned int);
-               ret = of_property_read_u32_array(pdev->dev.of_node, "isp_cooling_table",
-                       (unsigned int *)table_ptr, table_size * isp_idx_num);
-
-               for (i = 0; i < isp_idx_num; i++) {
-                       isp_fps_table[i].flags = table_ptr[i].flags;
-                       isp_fps_table[i].driver_data = table_ptr[i].driver_data;
-                       isp_fps_table[i].fps = table_ptr[i].fps;
-                       dev_info(&pdev->dev, "[ISP TMU] index : %d, fps : %d \n",
-                               isp_fps_table[i].driver_data, isp_fps_table[i].fps);
-               }
-               kfree(table_ptr);
-       }
-       return ret;
-}
-#else
-static int isp_cooling_table_init(struct platform_device *pdev) {return 0;}
-#endif
-
 struct pm_qos_request thermal_cpu_hotplug_request;
 static int exynos_throttle_cpu_hotplug(void *p, int temp)
 {