Changeset 851
- Timestamp:
- 08/04/00 00:40:43 (13 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/lm75.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/lm75.c
r823 r851 58 58 these macros are called: arguments may be evaluated more than once. 59 59 Fixing this is just not worth it. */ 60 #define TEMP_FROM_REG(val) ((( val) >> 7) * 5)60 #define TEMP_FROM_REG(val) ((((val & 0x7fff) >> 7) * 5) | ((val & 0x8000)?-256:0)) 61 61 #define TEMP_TO_REG(val) (SENSORS_LIMIT(((((val) + 2) / 5) << 7),0,0xffff)) 62 62
