projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75c08f1
)
mfd: stmpe: PWM on 24xx has altfunc 1
author
Linus Walleij
<
[email protected]
>
Thu, 27 Aug 2015 21:50:02 +0000
(23:50 +0200)
committer
Lee Jones
<
[email protected]
>
Mon, 26 Oct 2015 14:48:57 +0000
(14:48 +0000)
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 <
[email protected]
>
Signed-off-by: Lee Jones <
[email protected]
>
drivers/mfd/stmpe.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/stmpe.c
b/drivers/mfd/stmpe.c
index e971af86ce1ef7e495d47364aeee15f5c10b76a1..8222e374e4b17d55d3d514e9fc414b96b998008c 100644
(file)
--- a/
drivers/mfd/stmpe.c
+++ b/
drivers/mfd/stmpe.c
@@
-795,6
+795,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: