Skip to content

Commit

Permalink
mfd: stmpe: PWM on 24xx has altfunc 1
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
linusw authored and Lee Jones committed Oct 26, 2015
1 parent 75c08f1 commit f6d1034
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/stmpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f6d1034

Please sign in to comment.