Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95520
b: refs/heads/master
c: 76ecb4f
h: refs/heads/master
v: v3
  • Loading branch information
Zhang, Rui authored and Len Brown committed Apr 29, 2008
1 parent a5edd2f commit b947b56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9030062f3d61f87c1e787b3aa134fa3a8e4b2d25
refs/heads/master: 76ecb4f2d7ea5c3aac8970b9529775316507c6d2
5 changes: 5 additions & 0 deletions trunk/drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit b947b56

Please sign in to comment.