hwmon: (max31790) add fanN_enable
authorJustin Ledford <justinledford@google.com>
Mon, 29 Aug 2022 19:59:30 +0000 (19:59 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 19 Sep 2022 13:17:05 +0000 (06:17 -0700)
commit5b38279e1a3f10c8046761b9732dccbfed78d614
tree3587679f263230dad0b6f3a2bd6fd0bceb93add6
parentb5ae0ad56455dfb277b165b9270382f0e1c1d943
hwmon: (max31790) add fanN_enable

The MAX31790 has a tach input enable bit in each fan's configuration
register. This is only enabled by the driver if RPM mode is selected,
but the driver doesn't provide a way to independently enable tachometer
input regardless of the regulator mode.

By adding the fanN_enable sysfs files, we can decouple the tach input
from the regulator mode. Also update the documentation.

Signed-off-by: Justin Ledford <justinledford@google.com>
Link: https://lore.kernel.org/r/20220829195930.2521755-1-justinledford@google.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/max31790.rst
drivers/hwmon/max31790.c