hwmon: (w83l786ng) Fix fan speed control mode setting and reporting
authorBrian Carnes <bmcarnes@gmail.com>
Thu, 12 Dec 2013 07:05:32 +0000 (08:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:48:53 +0000 (07:48 -0800)
commitedf0afdbe45326982177055e7551b3b7e7d1e8eb
tree7d11585659c91c46509f5da80a5f61ee1762819d
parent45e569b558a59837f88d8eda7527d7c50154d75d
hwmon: (w83l786ng) Fix fan speed control mode setting and reporting

commit cf7559bc053471f32373d71d04a9aa19e0b48d59 upstream.

The wrong mask is used, which causes some fan speed control modes
(pwmX_enable) to be incorrectly reported, and some modes to be
impossible to set.

[JD: add subject and description.]

Signed-off-by: Brian Carnes <bmcarnes@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/w83l786ng.c