hwmon: (pwm-fan) Update the duty cycle inorder to control the pwm-fan
authorAnand Moon <linux.amoon@gmail.com>
Sun, 12 Apr 2015 18:44:11 +0000 (04:14 +0930)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 12 Apr 2015 22:59:11 +0000 (15:59 -0700)
commit270344db8601b5c3fce4c04f64326417f0f40b85
treed92d428a3eb79be2fd1049ff5b5c2966faa73434
parent7fbe6ca3261350d9576b803fbeeb98c4841bf2a9
hwmon: (pwm-fan) Update the duty cycle inorder to control the pwm-fan

pwm_config() must be called with a duty cycle of 0 prior to calling
pwm_disable() to ensure that the pwm signal is set to low.

Reported-by: Markus Reichl <m.reichl@fivetechno.de>
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pwm-fan.c