提交 16ea003b 编写于 作者: L Laxman Dewangan 提交者: Mark Brown

regulator: tps62360: enable register cache

Enable cache of device register using regmap cache RBTREE.
Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 8e8a507c
...@@ -262,8 +262,10 @@ static int tps62360_init_dcdc(struct tps62360_chip *tps, ...@@ -262,8 +262,10 @@ static int tps62360_init_dcdc(struct tps62360_chip *tps,
} }
static const struct regmap_config tps62360_regmap_config = { static const struct regmap_config tps62360_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.max_register = REG_CHIPID,
.cache_type = REGCACHE_RBTREE,
}; };
static int __devinit tps62360_probe(struct i2c_client *client, static int __devinit tps62360_probe(struct i2c_client *client,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册