diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-05-08 23:16:37 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-05-09 10:51:06 +0100 |
commit | b69d2ad6748e2cd3a6b93fca074adc31f56e4436 (patch) | |
tree | 726e03c7c6cb7f51e23faee5010ed4ddf90551d9 /drivers/mfd/stmpe.h | |
parent | 89ca3b881987f5a4be4c5dbaa7f0df12bbdde2fd (diff) | |
download | op-kernel-dev-b69d2ad6748e2cd3a6b93fca074adc31f56e4436.zip op-kernel-dev-b69d2ad6748e2cd3a6b93fca074adc31f56e4436.tar.gz |
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>
Diffstat (limited to 'drivers/mfd/stmpe.h')
-rw-r--r-- | drivers/mfd/stmpe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stmpe.h b/drivers/mfd/stmpe.h index 6639f1b..9e4d21d 100644 --- a/drivers/mfd/stmpe.h +++ b/drivers/mfd/stmpe.h @@ -192,7 +192,7 @@ int stmpe_remove(struct stmpe *stmpe); #define STMPE1601_SYS_CTRL_ENABLE_GPIO (1 << 3) #define STMPE1601_SYS_CTRL_ENABLE_KPC (1 << 1) -#define STMPE1601_SYSCON_ENABLE_SPWM (1 << 0) +#define STMPE1601_SYS_CTRL_ENABLE_SPWM (1 << 0) /* The 1601/2403 share the same masks */ #define STMPE1601_AUTOSLEEP_TIMEOUT_MASK (0x7) |