From: Jean Delvare Date: Fri, 17 Oct 2008 15:51:13 +0000 (+0200) Subject: hwmon: (lm85) Select the closest PWM frequency X-Git-Tag: v2.6.28-rc1~259^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86010c982db2030aad2c31f178b208964f5f6806;p=pandora-kernel.git hwmon: (lm85) Select the closest PWM frequency The LM85 and compatible chips only support 8 arbitrary PWM frequencies. The algorithm to pick one of them based on the user input is not optimum. Improve it to always pick the closest supported frequency. Signed-off-by: Jean Delvare Acked-by: Herbert Poetzl --- Reading git-diff-tree failed