public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] Thermal: core: Modify temp_crit_show() to use proper callback function.
@ 2013-05-18  9:50 Jonghwa Lee
  2013-05-20 15:57 ` Zhang, Rui
  0 siblings, 1 reply; 4+ messages in thread
From: Jonghwa Lee @ 2013-05-18  9:50 UTC (permalink / raw)
  To: linux-pm
  Cc: linux-kernel, Zhang Rui, Eduardo Valentin, Amit Dinel Kachhap,
	Jonghwa Lee, MyungJoo Ham

This patch modifies temp_crit_show() which is used to create hwmon's sysfs
node to use .get_crit_temp callback function of thermal zone device rather
than .get_trip_temp.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
---
 drivers/thermal/thermal_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index f753f48..ce4384a 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -924,7 +924,7 @@ temp_crit_show(struct device *dev, struct device_attribute *attr,
 	long temperature;
 	int ret;
 
-	ret = tz->ops->get_trip_temp(tz, 0, &temperature);
+	ret = tz->ops->get_crit_temp(tz, &temperature);
 	if (ret)
 		return ret;
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-23  2:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-18  9:50 [PATCH 2/3] Thermal: core: Modify temp_crit_show() to use proper callback function Jonghwa Lee
2013-05-20 15:57 ` Zhang, Rui
2013-05-21  1:31   ` jonghwa3.lee
2013-05-23  2:19     ` Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox