diff options
author | 2008-10-17 17:51:13 +0200 | |
---|---|---|
committer | 2008-10-17 17:51:13 +0200 | |
commit | 86010c982db2030aad2c31f178b208964f5f6806 (patch) | |
tree | 8bc829108fd362654f950dd9b3e98667c7831c6c /lib/debugobjects.c | |
parent | hwmon: (lm85) Implement the standard PWM frequency interface (diff) | |
download | wireguard-linux-86010c982db2030aad2c31f178b208964f5f6806.tar.xz wireguard-linux-86010c982db2030aad2c31f178b208964f5f6806.zip |
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>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions