mfd: stmpe: mask off unused blocks properly
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 8 May 2014 21:16:37 +0000 (23:16 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 9 May 2014 09:51:06 +0000 (10:51 +0100)
commitb69d2ad6748e2cd3a6b93fca074adc31f56e4436
tree726e03c7c6cb7f51e23faee5010ed4ddf90551d9
parent89ca3b881987f5a4be4c5dbaa7f0df12bbdde2fd
mfd: stmpe: mask off unused blocks properly

The STMPE driver would just read/modify/write the system control
register on the STMPE1601, meaning it would not properly mask off
the PWM block, which remained active if it was on at boot time.
This makes sure the blocks are always masked off if they were
active on boot, saving some power. Also rename the inconsistenty
named STMPE1601 define for the PWM block activation.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mfd/stmpe.c
drivers/mfd/stmpe.h
This page took 0.025918 seconds and 5 git commands to generate.