Hello everyone, this is a new version for supporting switching off the pwm-fan regulator. This time it is split into several smaller patches for ease of review. Some organizational changes are inspired/copied by/from pwm_bl. One big drawback form v2 was that there was no distinction bewteen when PWM duty == 0: * keep PWM on inactive level enabled (regulator as well) * disable PWM and regulator This is accomplished by using HWMON_PWM_ENABLE attribute. Documentation is added accordingly. Best regards, Alexander Alexander Stein (6): hwmon: pwm-fan: Refactor fan power on/off hwmon: pwm-fan: Simplify enable/disable check hwmon: pwm-fan: Dynamically switch off regulator if PWM duty is 0 hwmon: pwm-fan: Remove internal duplicated pwm_state hwmon: pwm-fan: Move PWM enable into separate function hwmon: pwm-fan: Add hwmon_pwm_enable attribute Documentation/hwmon/pwm-fan.rst | 10 ++ drivers/hwmon/pwm-fan.c | 263 ++++++++++++++++++++++---------- 2 files changed, 191 insertions(+), 82 deletions(-) -- 2.25.1