]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
hwmon: (lm85) Select the closest PWM frequency
authorJean Delvare <khali@linux-fr.org>
Fri, 17 Oct 2008 15:51:13 +0000 (17:51 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Fri, 17 Oct 2008 15:51:13 +0000 (17:51 +0200)
commit86010c982db2030aad2c31f178b208964f5f6806
tree8bc829108fd362654f950dd9b3e98667c7831c6c
parent34e7dc6ca4a663a1bb0a0a4e118426849dccd72d
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 <khali@linux-fr.org>
Acked-by: Herbert Poetzl <herbert@13thfloor.at>
drivers/hwmon/lm85.c