]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) Fix PWM duty cycle frequency attributes
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
commit3200d596a02565794ce011320aa7a632098fcebe
tree152e9a958bfdd71692455d18348623b1cbb40929
parent1ea51f59500af5eee7c641822f13b8dff56daa61
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 <khali@linux-fr.org>
drivers/hwmon/w83795.c