diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-05-09 18:40:54 +0530 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-20 17:26:59 +0200 |
commit | 3bf6bf9be51a0195c6b1604454fdd28ed1cc1770 (patch) | |
tree | 71c64ee8d215f1b60aac1e6cc908df176f1a7a44 /drivers/mfd/tps65910.c | |
parent | 9577e8c3fbc145b5d2a12d2fbc6a50031573c77d (diff) | |
download | linux-3bf6bf9be51a0195c6b1604454fdd28ed1cc1770.tar.bz2 |
mfd: Cache tps65910 register when we need it
During regmap initialization, we do not provide the default value and
hence in place of caching register during regmap_init(), cache it
when actually we need it i.e. after reading of that register.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/tps65910.c')
-rw-r--r-- | drivers/mfd/tps65910.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index a00c09ea0793..01570a789cf1 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -62,8 +62,7 @@ static const struct regmap_config tps65910_regmap_config = { .reg_bits = 8, .val_bits = 8, .volatile_reg = is_volatile_reg, - .max_register = TPS65910_MAX_REGISTER, - .num_reg_defaults_raw = TPS65910_MAX_REGISTER, + .max_register = TPS65910_MAX_REGISTER - 1, .cache_type = REGCACHE_RBTREE, }; |