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

From: Mark Brown
Date: Mon Nov 11 2024 - 14:01:47 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/max98926.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c
index ae962bda163ebfcd3f9c689d8137bf57e98021b0..ef672a2fcce1bd2008992faa8c39964bbd9657c1 100644
--- a/sound/soc/codecs/max98926.c
+++ b/sound/soc/codecs/max98926.c
@@ -506,7 +506,7 @@ static const struct regmap_config max98926_regmap = {
.num_reg_defaults = ARRAY_SIZE(max98926_reg),
.volatile_reg = max98926_volatile_register,
.readable_reg = max98926_readable_register,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};

static int max98926_i2c_probe(struct i2c_client *i2c)

--
2.39.5