aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bo Liu <liubo03@inspur.com> 2024-03-20 04:57:36 -0400
committerGravatar Mark Brown <broonie@kernel.org> 2024-03-25 00:48:23 +0000
commit43edba6b670bc4f5426e77873b400fe91f8d3c75 (patch)
tree1909f2dc5be299e1ebf824aa423532b970491a3c
parentregulator: pfuze100: convert to use maple tree register cache (diff)
downloadlinux-43edba6b670bc4f5426e77873b400fe91f8d3c75.tar.gz
linux-43edba6b670bc4f5426e77873b400fe91f8d3c75.tar.bz2
linux-43edba6b670bc4f5426e77873b400fe91f8d3c75.zip
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>
-rw-r--r--drivers/regulator/rtmv20-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/rtmv20-regulator.c b/drivers/regulator/rtmv20-regulator.c
index dfd1522637e4..3d8d29f87b58 100644
--- a/drivers/regulator/rtmv20-regulator.c
+++ b/drivers/regulator/rtmv20-regulator.c
@@ -312,7 +312,7 @@ static bool rtmv20_is_volatile_reg(struct device *dev, unsigned int reg)
static const struct regmap_config rtmv20_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
.max_register = RTMV20_REG_LDMASK,
.num_reg_defaults_raw = RTMV20_MAX_REGS,