]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hwmon/w83627ehf: Fix the fan5 clock divider write
authorJean Delvare <khali@linux-fr.org>
Tue, 17 Apr 2007 07:32:27 +0000 (00:32 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Apr 2007 23:36:27 +0000 (16:36 -0700)
commit33725ad36d48c09e9537d3d7e680471c298539a9
tree83bbcdb1673736fb0422b45ca5e36ab79c227e74
parent93da28790c17345f4db10358dfb19b4c241d8ba3
hwmon/w83627ehf: Fix the fan5 clock divider write

Users have been complaining about the w83627ehf driver flooding their logs
with debug messages like:

w83627ehf 9191-0a10: Increasing fan 4 clock divider from 64 to 128

or:

w83627ehf 9191-0290: Increasing fan 4 clock divider from 4 to 8

The reason is that we failed to actually write the LSB of the encoded clock
divider value for that fan, causing the next read to report the same old value
again and again.

Additionally, the fan number was improperly reported, making the bug harder to
find.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/w83627ehf.c