diff options
| -rw-r--r-- | drivers/thermal/int3403_thermal.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/thermal/int3403_thermal.c b/drivers/thermal/int3403_thermal.c index 1301681d9a77..e93f0253f6ed 100644 --- a/drivers/thermal/int3403_thermal.c +++ b/drivers/thermal/int3403_thermal.c | |||
| @@ -62,7 +62,13 @@ static int sys_get_trip_hyst(struct thermal_zone_device *tzone, | |||
| 62 | if (ACPI_FAILURE(status)) | 62 | if (ACPI_FAILURE(status)) |
| 63 | return -EIO; | 63 | return -EIO; |
| 64 | 64 | ||
| 65 | *temp = DECI_KELVIN_TO_MILLI_CELSIUS(hyst, KELVIN_OFFSET); | 65 | /* |
| 66 | * Thermal hysteresis represents a temperature difference. | ||
| 67 | * Kelvin and Celsius have same degree size. So the | ||
| 68 | * conversion here between tenths of degree Kelvin unit | ||
| 69 | * and Milli-Celsius unit is just to multiply 100. | ||
| 70 | */ | ||
| 71 | *temp = hyst * 100; | ||
| 66 | 72 | ||
| 67 | return 0; | 73 | return 0; |
| 68 | } | 74 | } |
