From b947b562f0970c3a1735835bcc1cf8db909ac93b Mon Sep 17 00:00:00 2001 From: "Zhang, Rui" Date: Thu, 10 Apr 2008 16:20:23 +0800 Subject: [PATCH] --- yaml --- r: 95520 b: refs/heads/master c: 76ecb4f2d7ea5c3aac8970b9529775316507c6d2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/acpi/thermal.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f414425d1bb8..d5684866a0fb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9030062f3d61f87c1e787b3aa134fa3a8e4b2d25 +refs/heads/master: 76ecb4f2d7ea5c3aac8970b9529775316507c6d2 diff --git a/trunk/drivers/acpi/thermal.c b/trunk/drivers/acpi/thermal.c index 5e9641c93fcd..782c2250443e 100644 --- a/trunk/drivers/acpi/thermal.c +++ b/trunk/drivers/acpi/thermal.c @@ -884,10 +884,15 @@ static void acpi_thermal_check(void *data) static int thermal_get_temp(struct thermal_zone_device *thermal, char *buf) { struct acpi_thermal *tz = thermal->devdata; + int result; if (!tz) return -EINVAL; + result = acpi_thermal_get_temperature(tz); + if (result) + return result; + return sprintf(buf, "%ld\n", KELVIN_TO_MILLICELSIUS(tz->temperature)); }