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 <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fe258f5 commit ab470ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)