Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1214838 > unrolled thread

[PATCH] mfd: stmpe: PWM on 24xx has altfunc 1

Started byLinus Walleij <linus.walleij@linaro.org>
First post2015-08-28 00:00 +0200
Last post2015-08-28 00:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] mfd: stmpe: PWM on 24xx has altfunc 1 Linus Walleij <linus.walleij@linaro.org> - 2015-08-28 00:00 +0200

#1214838 — [PATCH] mfd: stmpe: PWM on 24xx has altfunc 1

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-08-28 00:00 +0200
Subject[PATCH] mfd: stmpe: PWM on 24xx has altfunc 1
Message-ID<q2dnb-9F-3@gated-at.bofh.it>
On the STMPE2401 and STMPE2401 altfunction 1 corresponds to the
PWM channels. This oneliner was missing in the case-switch, making
it impossible to enable the PWM channel output.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/mfd/stmpe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 2ea19dd6d4d1..75152a881e79 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -823,6 +823,7 @@ static int stmpe24xx_get_altfunc(struct stmpe *stmpe, enum stmpe_block block)
 		return 2;
 
 	case STMPE_BLOCK_KEYPAD:
+	case STMPE_BLOCK_PWM:
 		return 1;
 
 	case STMPE_BLOCK_GPIO:
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web