aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Liu <[email protected]>2024-03-20 04:57:29 -0400
committerMark Brown <[email protected]>2024-03-25 00:48:17 +0000
commit03ddbcbe2f1ca9fac2759849be6714d8e82aa331 (patch)
tree8f64186b07eb5c7dd79762f7a5c840db6c9fddcf
parentd92eb7c333c5ac8d8add10d5a211ac9c405e4393 (diff)
regulator: da9211: 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/da9211-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c
index af383ff0fe57..d8b39ea3de0e 100644
--- a/drivers/regulator/da9211-regulator.c
+++ b/drivers/regulator/da9211-regulator.c
@@ -68,7 +68,7 @@ static const struct regmap_config da9211_regmap_config = {
.val_bits = 8,
.max_register = 5 * 128,
.volatile_reg = da9211_volatile_reg,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
.ranges = da9211_regmap_range,
.num_ranges = ARRAY_SIZE(da9211_regmap_range),
};