[COMMON] thermal: samsung: declare external variable for GPU sysfs
authorJinkyu, Yang <jinkyu1.yang@samsung.com>
Tue, 18 Oct 2016 09:04:19 +0000 (18:04 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:29 +0000 (17:13 +0900)
Change-Id: Iebd1587701adb7f353ab1c57c8b5460167bf518b
Signed-off-by: Jinkyu, Yang <jinkyu1.yang@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index dffdacd9393d61ebf44384c80048750eaf69da5b..82f123ecd9bf74ec6aa57ce77fb35cd66a36b9b6 100644 (file)
@@ -1281,6 +1281,11 @@ static int exynos_cpufreq_cooling_register(struct exynos_tmu_data *data)
 }
 
 #ifdef CONFIG_GPU_THERMAL
+
+#ifdef CONFIG_MALI_DEBUG_KERNEL_SYSFS
+struct exynos_tmu_data *gpu_thermal_data = NULL;
+#endif
+
 static int exynos_gpufreq_cooling_register(struct exynos_tmu_data *data)
 {
        struct device_node *np, *child = NULL, *gchild, *ggchild;
@@ -1337,6 +1342,10 @@ static int exynos_gpufreq_cooling_register(struct exynos_tmu_data *data)
                return -ENODEV;
        }
 
+#ifdef CONFIG_MALI_DEBUG_KERNEL_SYSFS
+       gpu_thermal_data = data;
+#endif
+
        return ret;
 }
 #else