regulator: tps62360: enable register cache
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 7 May 2012 12:38:25 +0000 (18:08 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 7 May 2012 14:21:53 +0000 (15:21 +0100)
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>
drivers/regulator/tps62360-regulator.c

index 20fef1d6cf90753f0733e49f3d78808514036d37..e8930805c5252b03b245e1b23c029fc9261b3324 100644 (file)
@@ -262,8 +262,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,