commit | 56ad86b4b16e4b7154300d71f8e93cca64b98e92 | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@aj.id.au> | Mon Nov 20 15:12:04 2017 +1030 |
committer | Guenter Roeck <linux@roeck-us.net> | Tue Jan 02 15:05:34 2018 -0800 |
tree | 63c230c464b68ca3de3eeaa538c6bc2058fded49 | |
parent | d206636e7697f47332774f29b90b92f6047d265d [diff] |
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>