diff mbox

mfd: stmpe: PWM on 24xx has altfunc 1

Message ID 1440712202-19125-1-git-send-email-linus.walleij@linaro.org
State Accepted
Commit f6d10341390d5d5bda1122dc5365e34d78f672ee
Headers show

Commit Message

Linus Walleij Aug. 27, 2015, 9:50 p.m. UTC
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(+)

Comments

Lee Jones Sept. 19, 2015, 10:04 a.m. UTC | #1
On Thu, 27 Aug 2015, Linus Walleij wrote:

> 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(+)

Applied, thanks.

> 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:
diff mbox

Patch

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: