[PATCH 01/17] ASoC: max98088: Use maple tree register cache

Mark Brown posted 17 patches 1 year, 2 months ago
[PATCH 01/17] ASoC: max98088: Use maple tree register cache
Posted by Mark Brown 1 year, 2 months ago
The maple tree register cache uses a more modern data structure than the
rbtree cache and makes optimisation choices that are more appropriate for
current hardware, unless there is a specific reason to do something else
then maple is a better choice for most devices. Switch to it.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/max98088.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index 8b0645c63462070d6d584c7d43d96d21f3dd6cfb..4fa47347111247dc74a90b531dfbe3c19e36dc59 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -301,7 +301,7 @@ static const struct regmap_config max98088_regmap = {
 
 	.reg_defaults = max98088_reg,
 	.num_reg_defaults = ARRAY_SIZE(max98088_reg),
-	.cache_type = REGCACHE_RBTREE,
+	.cache_type = REGCACHE_MAPLE,
 };
 
 /*

-- 
2.39.5