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:45:07 +0000 (07:45 -0800)
commitd6eb2d04bb8bcf9c899630fee2072477096c7599
tree789b1a2a04680cae3e618e8d7f953b752abf99e2
parentd4fa5279d77716bdcadcefee942629433ae45554
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