Skip to content

Commit f8be875

Browse files
Bo Liusre
authored andcommitted
power: supply: bq25980: 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-6-liubo03@inspur.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 21153cf commit f8be875

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/power/supply/bq25980_charger.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ static const struct regmap_config bq25980_regmap_config = {
932932
.max_register = BQ25980_CHRGR_CTRL_6,
933933
.reg_defaults = bq25980_reg_defs,
934934
.num_reg_defaults = ARRAY_SIZE(bq25980_reg_defs),
935-
.cache_type = REGCACHE_RBTREE,
935+
.cache_type = REGCACHE_MAPLE,
936936
.volatile_reg = bq25980_is_volatile_reg,
937937
};
938938

@@ -943,7 +943,7 @@ static const struct regmap_config bq25975_regmap_config = {
943943
.max_register = BQ25980_CHRGR_CTRL_6,
944944
.reg_defaults = bq25975_reg_defs,
945945
.num_reg_defaults = ARRAY_SIZE(bq25975_reg_defs),
946-
.cache_type = REGCACHE_RBTREE,
946+
.cache_type = REGCACHE_MAPLE,
947947
.volatile_reg = bq25980_is_volatile_reg,
948948
};
949949

@@ -954,7 +954,7 @@ static const struct regmap_config bq25960_regmap_config = {
954954
.max_register = BQ25980_CHRGR_CTRL_6,
955955
.reg_defaults = bq25960_reg_defs,
956956
.num_reg_defaults = ARRAY_SIZE(bq25960_reg_defs),
957-
.cache_type = REGCACHE_RBTREE,
957+
.cache_type = REGCACHE_MAPLE,
958958
.volatile_reg = bq25980_is_volatile_reg,
959959
};
960960

0 commit comments

Comments
 (0)