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

Mark Brown posted 17 patches 1 year, 2 months ago
[PATCH 17/17] ASoC: max98927: 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/max98927.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c
index 747aa6f1d54f0dea1dfba798c6cf462c026a5050..e878a2b55996ef3ce3d93138d7b68c969b6d6b82 100644
--- a/sound/soc/codecs/max98927.c
+++ b/sound/soc/codecs/max98927.c
@@ -777,7 +777,7 @@ static const struct regmap_config max98927_regmap = {
 	.num_reg_defaults = ARRAY_SIZE(max98927_reg),
 	.readable_reg	  = max98927_readable_register,
 	.volatile_reg	  = max98927_volatile_reg,
-	.cache_type       = REGCACHE_RBTREE,
+	.cache_type       = REGCACHE_MAPLE,
 };
 
 static void max98927_slot_config(struct i2c_client *i2c,

-- 
2.39.5