Skip to content

Commit 0332f07

Browse files
Bo Liubroonie
authored andcommitted
regulator: pfuze100: convert to use maple tree register cache
The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: Bo Liu <liubo03@inspur.com> Link: https://msgid.link/r/20240320085740.4604-9-liubo03@inspur.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent cea065d commit 0332f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/pfuze100-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ static const struct regmap_config pfuze_regmap_config = {
680680
.reg_bits = 8,
681681
.val_bits = 8,
682682
.max_register = PFUZE_NUMREGS - 1,
683-
.cache_type = REGCACHE_RBTREE,
683+
.cache_type = REGCACHE_MAPLE,
684684
};
685685

686686
static int pfuze100_regulator_probe(struct i2c_client *client)

0 commit comments

Comments
 (0)