pwm: stmpe: Fix wrong register offset for hwpwm=2 case
authorAxel Lin <axel.lin@ingics.com>
Tue, 7 Nov 2017 05:18:53 +0000 (13:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:55 +0000 (09:17 +0100)
[ Upstream commit 8472b529e113e0863ea064fdee51bf73c3f86fd6 ]

Fix trivial copy/paste bug.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Fixes: ef1f09eca74a ("pwm: Add a driver for the STMPE PWM")
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pwm/pwm-stmpe.c

index e464582..3439f1e 100644 (file)
@@ -145,7 +145,7 @@ static int stmpe_24xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
                break;
 
        case 2:
-               offset = STMPE24XX_PWMIC1;
+               offset = STMPE24XX_PWMIC2;
                break;
 
        default: