hwmon: (it87) Fix pwm4 detection for IT8620 and IT8628
authorGuenter Roeck <linux@roeck-us.net>
Wed, 8 Feb 2017 22:05:56 +0000 (14:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 12:00:13 +0000 (14:00 +0200)
commita941f261c8f16faa22d3fcd16842f6d8c2723eac
tree436fb6fbc928b97a783f7f463737bd49fbaf7cc8
parent898c6bbfc88de33ceabcee6545bda3bbe12d3e5c
hwmon: (it87) Fix pwm4 detection for IT8620 and IT8628

commit d66777caa57ffade6061782f3a4d4056f0b0c1ac upstream.

pwm4 is enabled if bit 2 of GPIO control register 4 is disabled,
not when it is enabled. Since the check is for the skip condition,
it is reversed. This applies to both IT8620 and IT8628.

Fixes: 36c4d98a7883d ("hwmon: (it87) Add support for all pwm channels ...")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/it87.c