e48c2a50f4a86f2a584cd9a697c065075a parent 3dc26c600cbae8e8e7566136148aef5667e8342b author Yuan Mu 1149445085 +0200 committer Greg Kroah-Hartman 1150999834 -0700 [PATCH] w83792d: Fix setting the PWM value W83792D use pwm register low 4 bits to store PWM/DC value, bit 7 is used to store fan PWM/DC mode. The store_pwm function did not convert the pwm input correctly, so it may change the fan mode when new value is set. This fix the problem. Change the "index" value of pwm*_mode and pwm* SENSOR_ATTR to simplify code. Signed-off-by: Yuan Mu Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman $,镝"x