]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83627ehf) Use 16 bit fan count registers if supported
authorGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 11 Feb 2011 16:00:58 +0000 (08:00 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 15 Mar 2011 05:39:18 +0000 (22:39 -0700)
commit984d70030ee52c843b813ffa5c75cb2c0d1408f3
tree26c639e33085a935fb683708416fde45d2f73abb
parent883aa9f2d718f9a84fb0c95208e51f35c72490f5
hwmon: (w83627ehf) Use 16 bit fan count registers if supported

Some of the chips supported by this driver have 13 bit or 16 bit fan count
registers. This patch improves support for those registers, specifically for
NCT6775F. With the changes in this patch, fan speed is reported correctly even
if the fan divider is set to a low value, which results in a fan speed reading
above 0xff.

With this patch, the width of fan count registers is no longer used to determine
if the chip has fan divider register(s) or not. A dedicated flag is used instead
to determine if this is the case.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Ian Dobson <i.dobson@planet-ian.com>
drivers/hwmon/w83627ehf.c