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

From: Mark Brown
Date: Mon Nov 11 2024 - 13:50:20 EST


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@xxxxxxxxxx>
---
sound/soc/codecs/max98390.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c
index 1bae253618fd07d2d796a47267829d42a3d14fe3..ef60fb6af2b1c474c4812e49293d37bfcb1c0f40 100644
--- a/sound/soc/codecs/max98390.c
+++ b/sound/soc/codecs/max98390.c
@@ -994,7 +994,7 @@ static const struct regmap_config max98390_regmap = {
.num_reg_defaults = ARRAY_SIZE(max98390_reg_defaults),
.readable_reg = max98390_readable_register,
.volatile_reg = max98390_volatile_reg,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};

static void max98390_slot_config(struct i2c_client *i2c,

--
2.39.5