hwmon: (w83627ehf) Use 16 bit fan count registers if supported
commit26bc440e3f14df5daff4d1ff0f37de5e260cea18
authorGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 11 Feb 2011 16:00:58 +0000 (11 08:00 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 15 Mar 2011 05:39:18 +0000 (14 22:39 -0700)
tree26c639e33085a935fb683708416fde45d2f73abb
parentec3e5a16446fef1891611fe3bdfa5954d1ddf5e4
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