hwmon: (w83627ehf) Fix max_output and step_output readings
authorGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 21 Jan 2011 08:42:17 +0000 (09:42 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:16:16 +0000 (16:16 -0400)
commitc81ac5970095a62139f4904e638c304b220e76e5
tree5a0eee43f86e1c74ba7669f5571d9e365b432ca0
parent595e0399c0ab27188f4067e44274662fbe3aa4ce
hwmon: (w83627ehf) Fix max_output and step_output readings

[extraction from commit da2e025590cf7038440132d4bbc967a579b11112 upstream]

The value of max_output and step_output registers isn't read from the
respective registers. As a result, zero values are returned to the
user through the respective sysfs attributes, instead of the actual
fan control settings.

The problem is fixed by updating the fan max output and fan step
output information from data in registers.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/hwmon/w83627ehf.c