Commit 8472b529 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding

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

Fix trivial copy/paste bug.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Fixes: ef1f09ec ("pwm: Add a driver for the STMPE PWM")
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 7e5d1fd7
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment