From: Linus Walleij Date: Thu, 27 Aug 2015 21:50:02 +0000 (+0200) Subject: mfd: stmpe: PWM on 24xx has altfunc 1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6d10341390d5d5bda1122dc5365e34d78f672ee;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Lee Jones --- 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: