Skip to content
Snippets Groups Projects
Commit 8472b529 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,7 @@ static int stmpe_24xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, ...@@ -145,7 +145,7 @@ static int stmpe_24xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
break; break;
case 2: case 2:
offset = STMPE24XX_PWMIC1; offset = STMPE24XX_PWMIC2;
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment