mfd: axp20x: Convert to use Maple Tree register cache
authorwangkaiyuan <wangkaiyuan@inspur.com>
Mon, 29 Apr 2024 02:45:47 +0000 (10:45 +0800)
committerLee Jones <lee@kernel.org>
Fri, 10 May 2024 14:39:17 +0000 (15:39 +0100)
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 <wangkaiyuan@inspur.com>
Link: https://lore.kernel.org/r/20240429024547.27724-1-wangkaiyuan@inspur.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/axp20x.c

index 48ce6ea693cea339ce1cfc340ec85c6dec1beccd..f2c0f144c0fc384f3b9b19087f26b82cf722426f 100644 (file)
@@ -422,7 +422,7 @@ static const struct regmap_config axp717_regmap_config = {
        .wr_table = &axp717_writeable_table,
        .volatile_table = &axp717_volatile_table,
        .max_register = AXP717_CPUSLDO_CONTROL,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
 };
 
 static const struct regmap_config axp806_regmap_config = {