Skip to content

Commit e142b02

Browse files
broonielag-linaro
authored andcommitted
mfd: tps6586x: 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: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20231001-mfd-ti-maple-v1-4-0657862de3f6@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 2e9a3fc commit e142b02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mfd/tps6586x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ static const struct regmap_config tps6586x_regmap_config = {
456456
.val_bits = 8,
457457
.max_register = TPS6586X_MAX_REGISTER,
458458
.volatile_reg = is_volatile_reg,
459-
.cache_type = REGCACHE_RBTREE,
459+
.cache_type = REGCACHE_MAPLE,
460460
};
461461

462462
static int tps6586x_power_off_handler(struct sys_off_data *data)

0 commit comments

Comments
 (0)