]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita00079a11ff61e6d32a90f6f3004efcba0312283
tree2a7433fb5d038481e28cb5b3dc1f0a9c0243ada2
parent35656743ba421f9d16b958d37fdddf913bed6d79
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