]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon/w83627ehf: Fix the fan5 clock divider write
authorJean Delvare <khali@linux-fr.org>
Wed, 25 Apr 2007 07:51:01 +0000 (09:51 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:06:02 +0000 (17:06 -0700)
commit87b814c9a7e7316ae4ea64767dbd0ae2fd6c179d
tree2da1947468645f6940e58383e268cbe8b78ac975
parent1b3bac165e24b4e5711b8bcf3ca7e7a990f5a22c
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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/w83627ehf.c