Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bo Liu and committed by
Mark Brown
ab470abe fe258f54

+1 -1
+1 -1
drivers/regulator/rpi-panel-attiny-regulator.c
··· 75 75 .val_bits = 8, 76 76 .disable_locking = 1, 77 77 .max_register = REG_WRITE_DATA_L, 78 - .cache_type = REGCACHE_RBTREE, 78 + .cache_type = REGCACHE_MAPLE, 79 79 }; 80 80 81 81 static int attiny_set_port_state(struct attiny_lcd *state, int reg, u8 val)