diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-05-07 08:38:25 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-07 10:21:53 -0400 |
commit | 16ea003bd1c95ea55a0b88187ce7cbeaca760fcf (patch) | |
tree | 761d07f6815e32119a68a1f7efae0e28f3e0eaa2 /drivers/regulator | |
parent | 8e8a507c2427c960c5d1fe58a250635b35f3acdc (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>
Diffstat (limited to 'drivers/regulator')
-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 20fef1d6cf9..e8930805c52 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c | |||
@@ -262,8 +262,10 @@ static int tps62360_init_dcdc(struct tps62360_chip *tps, | |||
262 | } | 262 | } |
263 | 263 | ||
264 | static const struct regmap_config tps62360_regmap_config = { | 264 | static const struct regmap_config tps62360_regmap_config = { |
265 | .reg_bits = 8, | 265 | .reg_bits = 8, |
266 | .val_bits = 8, | 266 | .val_bits = 8, |
267 | .max_register = REG_CHIPID, | ||
268 | .cache_type = REGCACHE_RBTREE, | ||
267 | }; | 269 | }; |
268 | 270 | ||
269 | static int __devinit tps62360_probe(struct i2c_client *client, | 271 | static int __devinit tps62360_probe(struct i2c_client *client, |