diff options
author | Bo Liu <[email protected]> | 2024-03-20 04:57:36 -0400 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-03-25 00:48:23 +0000 |
commit | 43edba6b670bc4f5426e77873b400fe91f8d3c75 (patch) | |
tree | 1909f2dc5be299e1ebf824aa423532b970491a3c | |
parent | 0332f074f5c3d8c2a32db24c9dcc3c3f13056cef (diff) |
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 <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | drivers/regulator/rtmv20-regulator.c | 2 |
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, |