hwmon: (w83627ehf) Driver cleanup
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 14 Aug 2010 19:08:55 +0000 (21:08 +0200)
committerJean Delvare <khali@linux-fr.org>
Sat, 14 Aug 2010 19:08:55 +0000 (21:08 +0200)
commitda2e025590cf7038440132d4bbc967a579b11112
tree2a7433fb5d038481e28cb5b3dc1f0a9c0243ada2
parent9df7305b5a8651eb940e98496bc1d4742379c578
hwmon: (w83627ehf) Driver cleanup

- Moved fan pwm register array pointers into per-instance data.
- Only read fan pwm data for installed/supported fans.
- Update fan max output and fan step output information from data in
  registers.
- Create max_output and step_output attribute files only if respective
  fan pwm registers exist.

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