aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/samsung/exynos_thermal_common.h
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2013-06-24 06:50:34 -0400
committerEduardo Valentin <eduardo.valentin@ti.com>2013-08-13 09:52:01 -0400
commit4de0bdaa9677d11406c9becb70c60887c957e1f0 (patch)
tree62dbdd3dd3d7592dec10f64c8055c79a6d219291 /drivers/thermal/samsung/exynos_thermal_common.h
parenta4463c4f669ac776a1f456fb51fd3c8c99ef904f (diff)
thermal: exynos: Add support for instance based register/unregister
This code modifies the thermal driver to have multiple thermal zone support by replacing the global thermal zone variable with device data member of thermal_zone_device. Acked-by: Kukjin Kim <kgene.kim@samsung.com> Acked-by: Jonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Diffstat (limited to 'drivers/thermal/samsung/exynos_thermal_common.h')
-rw-r--r--drivers/thermal/samsung/exynos_thermal_common.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/thermal/samsung/exynos_thermal_common.h b/drivers/thermal/samsung/exynos_thermal_common.h
index fee15889f9fa..86c1f848c850 100644
--- a/drivers/thermal/samsung/exynos_thermal_common.h
+++ b/drivers/thermal/samsung/exynos_thermal_common.h
@@ -85,22 +85,23 @@ struct thermal_sensor_conf {
85 struct thermal_trip_point_conf trip_data; 85 struct thermal_trip_point_conf trip_data;
86 struct thermal_cooling_conf cooling_data; 86 struct thermal_cooling_conf cooling_data;
87 void *private_data; 87 void *private_data;
88 void *pzone_data;
88}; 89};
89 90
90/*Functions used exynos based thermal sensor driver*/ 91/*Functions used exynos based thermal sensor driver*/
91#ifdef CONFIG_EXYNOS_THERMAL_CORE 92#ifdef CONFIG_EXYNOS_THERMAL_CORE
92void exynos_unregister_thermal(void); 93void exynos_unregister_thermal(struct thermal_sensor_conf *sensor_conf);
93int exynos_register_thermal(struct thermal_sensor_conf *sensor_conf); 94int exynos_register_thermal(struct thermal_sensor_conf *sensor_conf);
94void exynos_report_trigger(void); 95void exynos_report_trigger(struct thermal_sensor_conf *sensor_conf);
95#else 96#else
96static inline void 97static inline void
97exynos_unregister_thermal(void) { return; } 98exynos_unregister_thermal(struct thermal_sensor_conf *sensor_conf) { return; }
98 99
99static inline int 100static inline int
100exynos_register_thermal(struct thermal_sensor_conf *sensor_conf) { return 0; } 101exynos_register_thermal(struct thermal_sensor_conf *sensor_conf) { return 0; }
101 102
102static inline void 103static inline void
103exynos_report_trigger(void) { return; } 104exynos_report_trigger(struct thermal_sensor_conf *sensor_conf) { return; }
104 105
105#endif /* CONFIG_EXYNOS_THERMAL_CORE */ 106#endif /* CONFIG_EXYNOS_THERMAL_CORE */
106#endif /* _EXYNOS_THERMAL_COMMON_H */ 107#endif /* _EXYNOS_THERMAL_COMMON_H */