]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:45:50 +0000 (10:45 +0200)
commit3eeb5d50d383fe30d176135118e985234a8565bf
treea1cc73f633d3a96defedce184d2b83061c5d34a3
parent0573ca3093cd763370a8e9d49a913bccf71f8319
hwmon: (it87) Fix pwm4 detection for IT8620 and IT8628

BugLink: http://bugs.launchpad.net/bugs/1691369
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/hwmon/it87.c