hwmon: (it87) Generalise support for FAN_CTL ON/OFF
authorFrank Crawford <frank@crawford.emu.id.au>
Sat, 27 May 2023 09:47:56 +0000 (19:47 +1000)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 8 Jun 2023 13:44:14 +0000 (06:44 -0700)
commit317840cfd665d69a728424d1a85b80264442357f
tree2b766122c0cc915a9b52ee6be410a68b1d00b9ea
parenta1b6f13578e15e09fdaee5d90f05de04b59240bd
hwmon: (it87) Generalise support for FAN_CTL ON/OFF

Support for FAN_CTL ON/OFF is currently disabled only for IT8603E but
there are severl chips that don't support the configuration bits to turn
off fan control entirely.  Generalise this support for any chip.

Add feature flag FEAT_FANCTL_ONOFF for chips that support configuration
bits for management of fan control off and assign all chips that support
the configuration.

Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
Link: https://lore.kernel.org/r/20230527094756.3464256-1-frank@crawford.emu.id.au
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c