]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
power: supply: max1720x: convert to use maple tree register cache
authorBo Liu <liubo03@inspur.com>
Fri, 28 Feb 2025 08:02:34 +0000 (03:02 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 8 Mar 2025 00:30:54 +0000 (01:30 +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: Bo Liu <liubo03@inspur.com>
Link: https://lore.kernel.org/r/20250228080236.2759-8-liubo03@inspur.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max1720x_battery.c

index c1eaf3f7a78230d9324a2f4af20c5d5229ae6d88..ea3912fd1de8bfd0d029c16f276316d06e1b105c 100644 (file)
@@ -119,7 +119,7 @@ static const struct regmap_config max1720x_regmap_cfg = {
        .val_format_endian = REGMAP_ENDIAN_LITTLE,
        .rd_table = &max1720x_readable_regs,
        .volatile_table = &max1720x_volatile_regs,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
 };
 
 static const struct regmap_range max1720x_nvmem_allow[] = {