hwmon: (max6639) Fix FAN_FROM_REG calculation
authorChris D Schimp <silverchris@gmail.com>
Mon, 20 Feb 2012 21:59:24 +0000 (16:59 -0500)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 21 Feb 2012 22:30:12 +0000 (14:30 -0800)
commitb63d97a36edb1aecf8c13e5f5783feff4d64c24b
treecc84e698347ae3aa26ff88f7adfe5f505edc7b83
parentb01543dfe67bb1d191998e90d20534dc354de059
hwmon: (max6639) Fix FAN_FROM_REG calculation

RPM calculation from tachometer value does not depend on PPR.
Also, do not report negative RPM values.

Signed-off-by: Chris D Schimp <silverchris@gmail.com>
[guenter.roeck@ericsson.com: do not report negative RPM values]
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@vger.kernel.org # 3.0+
Acked-by: Roland Stigge <stigge@antcom.de>
drivers/hwmon/max6639.c