]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
power: supply: bq24257: convert to use maple tree register cache
authorBo Liu <liubo03@inspur.com>
Fri, 28 Feb 2025 08:02:29 +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-3-liubo03@inspur.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq24257_charger.c

index 1416586f2459109b29fe57a5ee86fa3704013aac..766eecb356941f3ddc1eff4319b38e35681184b9 100644 (file)
@@ -113,7 +113,7 @@ static const struct regmap_config bq24257_regmap_config = {
        .val_bits = 8,
 
        .max_register = BQ24257_REG_7,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
 
        .volatile_reg = bq24257_is_volatile_reg,
 };