#ifdef CONFIG_DEVFREQ_THERMAL
+#include <linux/version.h>
#include <linux/devfreq_cooling.h>
#include <linux/thermal.h>
return (coefficient * v2 * f_mhz) / 1000000; /* mW */
}
-
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 16))
struct devfreq_cooling_ops t83x_model_ops = {
+#else
+struct devfreq_cooling_power t83x_model_ops = {
+#endif
.get_static_power = t83x_static_power,
.get_dynamic_power = t83x_dynamic_power,
};
#ifdef CONFIG_DEVFREQ_THERMAL
+#include <linux/version.h>
#include <linux/devfreq_cooling.h>
#include <linux/thermal.h>
return (coefficient * v2 * f_mhz) / 1000000; /* mW */
}
-
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 16))
struct devfreq_cooling_ops t83x_model_ops = {
+#else
+struct devfreq_cooling_power t83x_model_ops = {
+#endif
.get_static_power = t83x_static_power,
.get_dynamic_power = t83x_dynamic_power,
};
#ifdef CONFIG_DEVFREQ_THERMAL
+#include <linux/version.h>
#include <linux/devfreq_cooling.h>
#include <linux/thermal.h>
return (coefficient * v2 * f_mhz) / 1000000; /* mW */
}
-
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 16))
struct devfreq_cooling_ops t83x_model_ops = {
+#else
+struct devfreq_cooling_power t83x_model_ops = {
+#endif
.get_static_power = t83x_static_power,
.get_dynamic_power = t83x_dynamic_power,
};