]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (f75375s) Fix register write order when setting fans to full speed
authorNikolaus Schulz <schulz@macnetix.de>
Wed, 22 Feb 2012 22:18:44 +0000 (23:18 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 23 Feb 2012 14:47:47 +0000 (06:47 -0800)
commitdd006834690249cd82fa2b1eb250ed11dd181457
tree5a123a800cd8b845b164f46ce311b81210df9b31
parent3d1d791d3980f3f090699c4dfaa1a5a07d084b3c
hwmon: (f75375s) Fix register write order when setting fans to full speed

By hwmon sysfs interface convention, setting pwm_enable to zero sets a fan
to full speed.  In the f75375s driver, this need be done by enabling
manual fan control, plus duty mode for the F875387 chip, and then setting
the maximum duty cycle.  Fix a bug where the two necessary register writes
were swapped, effectively discarding the setting to full-speed.

Signed-off-by: Nikolaus Schulz <mail@microschulz.de>
Cc: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/f75375s.c