hwmon: (pmbus/max31785) Add fan control

The implementation makes use of the new fan control virtual registers
exposed by the pmbus core. It mixes use of the default implementations
with some overrides via the read/write handlers to handle FAN_COMMAND_1
on the MAX31785, whose definition breaks the value range into various
control bands dependent on RPM or PWM mode.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Andrew Jeffery 2017-11-20 15:12:04 +10:30 • committed by Guenter Roeck
commit 56ad86b4b1
2 changed files with 144 additions and 1 deletions