Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: