diff options
author | Bo Liu <liubo03@inspur.com> | 2024-03-20 04:57:29 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-03-25 00:48:17 +0000 |
commit | 03ddbcbe2f1ca9fac2759849be6714d8e82aa331 (patch) | |
tree | 8f64186b07eb5c7dd79762f7a5c840db6c9fddcf | |
parent | d92eb7c333c5ac8d8add10d5a211ac9c405e4393 (diff) | |
download | linux-stable-03ddbcbe2f1ca9fac2759849be6714d8e82aa331.tar.gz linux-stable-03ddbcbe2f1ca9fac2759849be6714d8e82aa331.tar.bz2 linux-stable-03ddbcbe2f1ca9fac2759849be6714d8e82aa331.zip |
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 <liubo03@inspur.com>
Link: https://msgid.link/r/20240320085740.4604-3-liubo03@inspur.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/da9211-regulator.c | 2 |
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), }; |