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:34:19 +0000 (07:34 -0800)
commit433b0da5d2248024c21cf39ebfc7a02d0b1acf01
tree8b243a6c6ac02c3a0d04a0e41f3d2d473379afc9
parentf843edd53fec967be6d41c81b1426ec82728934b
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