]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit3382a918da968318a4284a14b3dee4a38f8a6749
tree4fce52cfcf9632362714fc03a5bcfd2785494759
parent26bc440e3f14df5daff4d1ff0f37de5e260cea18
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