summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-10-28 18:31:47 (GMT)
committerJean Delvare <khali@endymion.delvare>2010-10-28 18:31:47 (GMT)
commit01879a855fb6bdb3fb820344a7a145de8a5cdbda (patch)
tree152e9a958bfdd71692455d18348623b1cbb40929 /lib
parent0e256018b0f35d1b22ca37e1d0e207f7ba3d0076 (diff)
downloadlinux-fsl-qoriq-01879a855fb6bdb3fb820344a7a145de8a5cdbda.tar.xz
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions