]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:08:19 +0000 (14:08 +0200)
commit2586f8f02455a9d8316658fd80cc96ade7048af9
tree4d5f36c4fbb748a356694d139a624a67d7985d75
parent5e7b84228b518ef91a3c58f4a433820c69e6874d
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