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

regulator: rtmv20: 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-10-liubo03@inspur.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bo Liu and committed by
Mark Brown
43edba6b 0332f074

+1 -1
+1 -1
drivers/regulator/rtmv20-regulator.c
··· 312 312 static const struct regmap_config rtmv20_regmap_config = { 313 313 .reg_bits = 8, 314 314 .val_bits = 8, 315 - .cache_type = REGCACHE_RBTREE, 315 + .cache_type = REGCACHE_MAPLE, 316 316 .max_register = RTMV20_REG_LDMASK, 317 317 .num_reg_defaults_raw = RTMV20_MAX_REGS, 318 318