diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-05-07 18:08:25 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-06-01 13:07:20 -0700 |
commit | c6ea134b2623476857bd751c37729873804fb07d (patch) | |
tree | 92fdddbeee291e347dc3607630c10fdb5b6ce975 | |
parent | cf5de026b9578ba54733fbf66666aaa5c00129c6 (diff) |
regulator: tps62360: enable register cache
Enable cache of device register using regmap cache RBTREE.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 16ea003bd1c95ea55a0b88187ce7cbeaca760fcf)
Change-Id: If747dd18a488d500f8295f903c8da92c241c293e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105829
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
-rw-r--r-- | drivers/regulator/tps62360-regulator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index 73f3117d593b..68941ec64445 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c @@ -263,8 +263,10 @@ static int tps62360_init_dcdc(struct tps62360_chip *tps, } static const struct regmap_config tps62360_regmap_config = { - .reg_bits = 8, - .val_bits = 8, + .reg_bits = 8, + .val_bits = 8, + .max_register = REG_CHIPID, + .cache_type = REGCACHE_RBTREE, }; static int __devinit tps62360_probe(struct i2c_client *client, |