summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/stmpe.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-08-27 23:50:02 +0200
committerLee Jones <lee.jones@linaro.org>2015-10-26 14:48:57 +0000
commitf6d10341390d5d5bda1122dc5365e34d78f672ee (patch)
tree2734a6a0b78e34f3e870eebe0d3c0319b1c7a46d /drivers/mfd/stmpe.c
parent75c08f17ec87c2d742487bb87408d6feebc526bd (diff)
downloadtalos-obmc-linux-f6d10341390d5d5bda1122dc5365e34d78f672ee.tar.gz
talos-obmc-linux-f6d10341390d5d5bda1122dc5365e34d78f672ee.zip
mfd: stmpe: PWM on 24xx has altfunc 1
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> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/stmpe.c')
-rw-r--r--drivers/mfd/stmpe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index e971af86ce1e..8222e374e4b1 100644
--- 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:
OpenPOWER on IntegriCloud