From: Jean Delvare Date: Thu, 28 Oct 2010 18:31:47 +0000 (+0200) Subject: hwmon: (w83795) Fix PWM duty cycle frequency attributes X-Git-Tag: v2.6.37-rc1~59^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01879a855fb6bdb3fb820344a7a145de8a5cdbda;p=pandora-kernel.git hwmon: (w83795) Fix PWM duty cycle frequency attributes The PWM duty cycle frequenty attributes are improperly named (fanN_div instead of pwmN_div) and contain raw values instead of actual frequencies. Rename them and fix their contents. Also improve the logic when the user asks for a new frequency, to always pick the closest supported frequency. The algorithm could certainly be optimized, but the operation is infrequent enough that I don't think it's worth the effort. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed