Skip to content

Commit ab470ab

Browse files
Bo Liubroonie
authored andcommitted
regulator: rpi-panel-attiny: 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://msgid.link/r/20240320085740.4604-14-liubo03@inspur.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fe258f5 commit ab470ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/rpi-panel-attiny-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static const struct regmap_config attiny_regmap_config = {
7575
.val_bits = 8,
7676
.disable_locking = 1,
7777
.max_register = REG_WRITE_DATA_L,
78-
.cache_type = REGCACHE_RBTREE,
78+
.cache_type = REGCACHE_MAPLE,
7979
};
8080

8181
static int attiny_set_port_state(struct attiny_lcd *state, int reg, u8 val)

0 commit comments

Comments
 (0)