pwm: stmpe: Fix wrong register offset for hwpwm=2 case

Fix trivial copy/paste bug.

Signed-off-by: Axel Lin <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Fixes: ef1f09eca7 ("pwm: Add a driver for the STMPE PWM")
Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
Axel Lin 2017-11-07 13:18:53 +08:00 • committed by Thierry Reding
commit 8472b529e1

View 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: