linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFT] pwm: stmpe: Fix wrong register offset for hwpwm=2 case
@ 2017-11-07  5:18 Axel Lin
  2017-11-09  8:45 ` Linus Walleij
  2017-12-05  8:33 ` Thierry Reding
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2017-11-07  5:18 UTC (permalink / raw)
  To: linux-pwm; +Cc: Thierry Reding, Linus Walleij, Axel Lin

Fix trivial copy/paste bug.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
Hi Linus,
I don't have this h/w to test.
Appreciate if you can review and test this patch.

Thanks,
Axel
 drivers/pwm/pwm-stmpe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-05  8:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-07  5:18 [PATCH RFT] pwm: stmpe: Fix wrong register offset for hwpwm=2 case Axel Lin
2017-11-09  8:45 ` Linus Walleij
2017-11-24  9:10   ` Axel Lin
2017-11-24 10:42     ` Thierry Reding
2017-12-05  8:33 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).