Skip to content

Commit 81c180e

Browse files
Bo Liubroonie
authored andcommitted
regulator: rtq6752: 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 <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 43edba6 commit 81c180e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/rtq6752-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static const struct reg_default rtq6752_reg_defaults[] = {
209209
static const struct regmap_config rtq6752_regmap_config = {
210210
.reg_bits = 8,
211211
.val_bits = 8,
212-
.cache_type = REGCACHE_RBTREE,
212+
.cache_type = REGCACHE_MAPLE,
213213
.max_register = RTQ6752_REG_FAULT,
214214
.reg_defaults = rtq6752_reg_defaults,
215215
.num_reg_defaults = ARRAY_SIZE(rtq6752_reg_defaults),

0 commit comments

Comments
 (0)