From: Yuan Mu Date: Sun, 4 Jun 2006 18:18:05 +0000 (+0200) Subject: [PATCH] w83792d: Fix setting the PWM value X-Git-Tag: v2.6.18-rc1~1081^2~226^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53e2761bb2e4ed58913c266ad13e8c10692aec1e;p=pandora-kernel.git [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 --- Reading git-diff-tree failed