Skip to content

Commit 71a7627

Browse files
Bo Liusre
authored andcommitted
power: supply: bq2515x: 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: Bo Liu <liubo03@inspur.com> Link: https://lore.kernel.org/r/20250228080236.2759-4-liubo03@inspur.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 6d166a6 commit 71a7627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/power/supply/bq2515x_charger.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ static const struct regmap_config bq25150_regmap_config = {
10601060
.max_register = BQ2515X_DEVICE_ID,
10611061
.reg_defaults = bq25150_reg_defaults,
10621062
.num_reg_defaults = ARRAY_SIZE(bq25150_reg_defaults),
1063-
.cache_type = REGCACHE_RBTREE,
1063+
.cache_type = REGCACHE_MAPLE,
10641064
.volatile_reg = bq2515x_volatile_register,
10651065
};
10661066

@@ -1071,7 +1071,7 @@ static const struct regmap_config bq25155_regmap_config = {
10711071
.max_register = BQ2515X_DEVICE_ID,
10721072
.reg_defaults = bq25155_reg_defaults,
10731073
.num_reg_defaults = ARRAY_SIZE(bq25155_reg_defaults),
1074-
.cache_type = REGCACHE_RBTREE,
1074+
.cache_type = REGCACHE_MAPLE,
10751075
.volatile_reg = bq2515x_volatile_register,
10761076
};
10771077

0 commit comments

Comments
 (0)