hwmon: (pwm-fan) Fix suspend/resume behavior
authorKamil Debski <[email protected]>
Mon, 3 Nov 2014 14:42:55 +0000 (15:42 +0100)
committerGuenter Roeck <[email protected]>
Tue, 11 Nov 2014 18:39:45 +0000 (10:39 -0800)
commit48b9d5b4f408259cd6800c4b17d4fe5025435da2
tree9e6acd855c6088dd9d9dbbb2d95ccc665da4edda
parentaab18da44f243cf59b4dee335ea50b32f529b5b0
hwmon: (pwm-fan) Fix suspend/resume behavior

The state of a PWM output is not clearly defined after resume. Some PWM
drivers do not restore the duty cycle upon resume, thus it is necessary to
manually restore the correct value.

Signed-off-by: Kamil Debski <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
drivers/hwmon/pwm-fan.c