Skip to content

Commit

Permalink
regulator: tps62360: enable register cache
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laxman Dewangan authored and Mark Brown committed May 7, 2012
1 parent 8e8a507 commit 16ea003
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/regulator/tps62360-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 16ea003

Please sign in to comment.