diff options
| author | Matthias Schiffer <[email protected]> | 2022-10-13 13:59:51 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2022-10-16 22:52:59 +0000 |
| commit | 3008d20f5445ee6f214e3b2d42114c8c923d9625 (patch) | |
| tree | 09f302cd9603d5ca6078c9cf292b7403440440de /lib/zstd/common/compiler.h | |
| parent | hwmon: (corsair-psu) fix typo in USB id description (diff) | |
| download | kernel-3008d20f5445ee6f214e3b2d42114c8c923d9625.tar.gz kernel-3008d20f5445ee6f214e3b2d42114c8c923d9625.zip | |
hwmon: (pwm-fan) Explicitly switch off fan power when setting pwm1_enable to 0
When pwm1_enable is changed from 1 to 0 while pwm1 == 0, the regulator
is not switched off as expected. The reason is that when the fan is
already off, ctx->enabled is false, so pwm_fan_power_off() will be a
no-op.
Handle this case explicitly in pwm_fan_update_enable() by calling
pwm_fan_switch_power() directly.
Fixes: b99152d4f04b ("hwmon: (pwm-fan) Switch regulator dynamically")
Signed-off-by: Matthias Schiffer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/zstd/common/compiler.h')
0 files changed, 0 insertions, 0 deletions
