From: Henrique de Moraes Holschuh Date: Thu, 19 Jul 2007 02:45:45 +0000 (-0300) Subject: ACPI: thinkpad-acpi: make sure DSDT TMPx readings don't return +128 X-Git-Tag: v2.6.23-rc1~17^2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8fba3da3d11d808137be7ebeb3b6938a42f011f;p=pandora-kernel.git ACPI: thinkpad-acpi: make sure DSDT TMPx readings don't return +128 We get +128 instead of -128 from the DSDT TMPx methods, due to errors when converting a EC byte return that is a s8 to an ACPI handler return that is an int. Fix it once and for all, by clamping acceptable temperature readings from DSDT TMPx so that anything outside the [-127,+127] range is converted to TP_EC_THERMAL_TMP_NA (-128). Signed-off-by: Henrique de Moraes Holschuh Cc: Michael Olbrich Signed-off-by: Len Brown --- Reading git-diff-tree failed