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

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

authored by

Bo Liu and committed by
Mark Brown
81c180e7 43edba6b

+1 -1
+1 -1
drivers/regulator/rtq6752-regulator.c
··· 209 209 static const struct regmap_config rtq6752_regmap_config = { 210 210 .reg_bits = 8, 211 211 .val_bits = 8, 212 - .cache_type = REGCACHE_RBTREE, 212 + .cache_type = REGCACHE_MAPLE, 213 213 .max_register = RTQ6752_REG_FAULT, 214 214 .reg_defaults = rtq6752_reg_defaults, 215 215 .num_reg_defaults = ARRAY_SIZE(rtq6752_reg_defaults),