hwmon: (pmbus/max31785) Add fan control
authorAndrew Jeffery <andrew@aj.id.au>
Mon, 20 Nov 2017 04:42:04 +0000 (15:12 +1030)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 2 Jan 2018 23:05:34 +0000 (15:05 -0800)
commit56ad86b4b16e4b7154300d71f8e93cca64b98e92
tree63c230c464b68ca3de3eeaa538c6bc2058fded49
parentd206636e7697f47332774f29b90b92f6047d265d
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>
Documentation/hwmon/max31785
drivers/hwmon/pmbus/max31785.c