diff options
author | Amit Daniel Kachhap <amit.daniel@samsung.com> | 2013-06-24 06:50:34 -0400 |
---|---|---|
committer | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-08-13 09:52:01 -0400 |
commit | 4de0bdaa9677d11406c9becb70c60887c957e1f0 (patch) | |
tree | 62dbdd3dd3d7592dec10f64c8055c79a6d219291 /drivers/thermal/samsung/exynos_thermal_common.h | |
parent | a4463c4f669ac776a1f456fb51fd3c8c99ef904f (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.h | 9 |
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 |
92 | void exynos_unregister_thermal(void); | 93 | void exynos_unregister_thermal(struct thermal_sensor_conf *sensor_conf); |
93 | int exynos_register_thermal(struct thermal_sensor_conf *sensor_conf); | 94 | int exynos_register_thermal(struct thermal_sensor_conf *sensor_conf); |
94 | void exynos_report_trigger(void); | 95 | void exynos_report_trigger(struct thermal_sensor_conf *sensor_conf); |
95 | #else | 96 | #else |
96 | static inline void | 97 | static inline void |
97 | exynos_unregister_thermal(void) { return; } | 98 | exynos_unregister_thermal(struct thermal_sensor_conf *sensor_conf) { return; } |
98 | 99 | ||
99 | static inline int | 100 | static inline int |
100 | exynos_register_thermal(struct thermal_sensor_conf *sensor_conf) { return 0; } | 101 | exynos_register_thermal(struct thermal_sensor_conf *sensor_conf) { return 0; } |
101 | 102 | ||
102 | static inline void | 103 | static inline void |
103 | exynos_report_trigger(void) { return; } | 104 | exynos_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 */ |