regulator: tps62360: enable register cache
Laxman Dewangan [Mon, 7 May 2012 12:38:25 +0000 (17:38 +0530)]
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

drivers/regulator/tps62360-regulator.c

index e55219b..47246b8 100644 (file)
@@ -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,