Skip to content

Commit 248327d

Browse files
wangkaiyuanlag-linaro
authored andcommitted
mfd: axp20x: 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: wangkaiyuan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent de8f4d9 commit 248327d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/axp20x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static const struct regmap_config axp717_regmap_config = {
422422
.wr_table = &axp717_writeable_table,
423423
.volatile_table = &axp717_volatile_table,
424424
.max_register = AXP717_CPUSLDO_CONTROL,
425-
.cache_type = REGCACHE_RBTREE,
425+
.cache_type = REGCACHE_MAPLE,
426426
};
427427

428428
static const struct regmap_config axp806_regmap_config = {

0 commit comments

Comments
 (0)