hwmon/w83627ehf: Fix the fan5 clock divider write
commit17acc02c4df45426d62e5e31231a2312c361f107
authorJean Delvare <khali@linux-fr.org>
Thu, 19 Apr 2007 23:43:12 +0000 (20 01:43 +0200)
committerAdrian Bunk <bunk@stusta.de>
Thu, 19 Apr 2007 23:43:12 +0000 (20 01:43 +0200)
tree676cf5c013210e16aef3bc563bc95e048b5df225
parent691d4b9f4f4479edb4c3c63c7dbf5c5fa1ce0979
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: Adrian Bunk <bunk@stusta.de>
drivers/hwmon/w83627ehf.c