From: Axel Lin Date: Tue, 7 Nov 2017 05:18:53 +0000 (+0800) Subject: pwm: stmpe: Fix wrong register offset for hwpwm=2 case X-Git-Tag: v4.14.28~42 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5dc7257b7ca7983fda5c3e40cc5adcf88ef72529;p=users%2Fjedix%2Flinux-maple.git pwm: stmpe: Fix wrong register offset for hwpwm=2 case [ Upstream commit 8472b529e113e0863ea064fdee51bf73c3f86fd6 ] Fix trivial copy/paste bug. Signed-off-by: Axel Lin Reviewed-by: Linus Walleij Fixes: ef1f09eca74a ("pwm: Add a driver for the STMPE PWM") Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pwm/pwm-stmpe.c b/drivers/pwm/pwm-stmpe.c index e464582a390a..3439f1e902cb 100644 --- a/drivers/pwm/pwm-stmpe.c +++ b/drivers/pwm/pwm-stmpe.c @@ -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: