]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83627ehf) Store rpm instead of raw fan speed data
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 13 Feb 2011 21:08:23 +0000 (13:08 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 15 Mar 2011 05:39:18 +0000 (22:39 -0700)
commiteb9931024404c1875fda295e9904d10be236d633
tree4fce52cfcf9632362714fc03a5bcfd2785494759
parent984d70030ee52c843b813ffa5c75cb2c0d1408f3
hwmon: (w83627ehf) Store rpm instead of raw fan speed data

Since the fan speed value can be above 0xff, we can no longer use
that value to determine if the fan speed reading is valid. This
makes it difficult to manipulate the stored fan speed register value.

If we store rpm instead of the fan speed register value, we do not
need to correct it if the fan divisor value is changed, and the above
mentioned problem no longer exists.

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