Skip to content

Commit af4499f

Browse files
Bo Liusre
authored andcommitted
power: supply: rt9455: 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-9-liubo03@inspur.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent dde0409 commit af4499f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/rt9455_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ static const struct regmap_config rt9455_regmap_config = {
15791579
.writeable_reg = rt9455_is_writeable_reg,
15801580
.volatile_reg = rt9455_is_volatile_reg,
15811581
.max_register = RT9455_REG_MASK3,
1582-
.cache_type = REGCACHE_RBTREE,
1582+
.cache_type = REGCACHE_MAPLE,
15831583
};
15841584

15851585
static int rt9455_probe(struct i2c_client *client)

0 commit comments

Comments
 (0)