diff options
author | Axel Lin <axel.lin@ingics.com> | 2017-11-07 13:18:53 +0800 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-12-05 09:33:05 +0100 |
commit | 8472b529e113e0863ea064fdee51bf73c3f86fd6 (patch) | |
tree | 81b14e8fdf72ceeb449100055a33f77ff59278d3 /drivers/pwm | |
parent | 7e5d1fd75c3dde9fc10c4472b9368089d1b81d00 (diff) |
pwm: stmpe: Fix wrong register offset for hwpwm=2 case
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-stmpe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |