Changeset 2495
- Timestamp:
- 04/30/04 18:57:14 (9 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/pc87360.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/pc87360.c
r2492 r2495 118 118 119 119 #define PWM_FROM_REG(val) (val) 120 #define PWM_TO_REG(val) (((val) < 0) ? 0 : \ 121 ((val) > 255) ? 255 : \ 122 (val)) 120 #define PWM_TO_REG(val) ((val) < 0 ? 0 : \ 121 (val) > 255 ? 255 : (val)) 123 122 124 123 /* … … 824 823 if (*nrels_mag >= 1) 825 824 { 825 #ifdef DEBUG 826 printk(KERN_DEBUG "pc87360.o: Old PWM%u register: %u\n", 827 nr+1, data->pwm[nr]); 828 printk(KERN_DEBUG "pc87360.o: Wanted PWM%u value: %ld\n", 829 nr+1, results[0]); 830 #endif 826 831 data->pwm[nr] = PWM_TO_REG(results[0]); 832 #ifdef DEBUG 833 printk(KERN_DEBUG "pc87360.o: Writing %u to register %u\n", 834 data->pwm[nr], PC87360_REG_PWM(nr)); 835 #endif 827 836 pc87360_write_value(data, LD_FAN, NO_BANK, 828 837 PC87360_REG_PWM(nr),
