Skip to content

Commit 7f70d45

Browse files
broonielag-linaro
authored andcommitted
mfd: rk8xx: 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: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 1c943df commit 7f70d45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mfd/rk8xx-i2c.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,23 @@ static const struct regmap_config rk818_regmap_config = {
8080
.reg_bits = 8,
8181
.val_bits = 8,
8282
.max_register = RK818_USB_CTRL_REG,
83-
.cache_type = REGCACHE_RBTREE,
83+
.cache_type = REGCACHE_MAPLE,
8484
.volatile_reg = rk808_is_volatile_reg,
8585
};
8686

8787
static const struct regmap_config rk805_regmap_config = {
8888
.reg_bits = 8,
8989
.val_bits = 8,
9090
.max_register = RK805_OFF_SOURCE_REG,
91-
.cache_type = REGCACHE_RBTREE,
91+
.cache_type = REGCACHE_MAPLE,
9292
.volatile_reg = rk808_is_volatile_reg,
9393
};
9494

9595
static const struct regmap_config rk808_regmap_config = {
9696
.reg_bits = 8,
9797
.val_bits = 8,
9898
.max_register = RK808_IO_POL_REG,
99-
.cache_type = REGCACHE_RBTREE,
99+
.cache_type = REGCACHE_MAPLE,
100100
.volatile_reg = rk808_is_volatile_reg,
101101
};
102102

0 commit comments

Comments
 (0)