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)
commitf354169e0f7dcd1b2c82cf1f98f6d976e85f74c3
treed92d428a3eb79be2fd1049ff5b5c2966faa73434
parentf83a9cb6228472a464c2ab4abb9bd1e83939aec2
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