summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-06-10 14:57:53 +0100
committerMark Brown <broonie@kernel.org>2023-06-19 12:58:39 +0100
commit8a7384907e3f9ac380290414d7fd72df952757ba (patch)
tree9584eea9ac830ac044bfe70db737cd537f10e9f4 /sound/soc
parenteef0d85d964f21ec1817d397ab151b78f29ed047 (diff)
downloadlinux-stable-8a7384907e3f9ac380290414d7fd72df952757ba.tar.gz
linux-stable-8a7384907e3f9ac380290414d7fd72df952757ba.tar.bz2
linux-stable-8a7384907e3f9ac380290414d7fd72df952757ba.zip
ASoC: rt5631: Use maple tree register cache
The rt5631 can only support single register read and write operations so does not benefit from block writes. This means it gets no benefit from using the rbtree register cache over the maple tree register cache so convert it to use maple trees instead, it is more modern. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230609-asoc-rt-maple-v1-7-729c6553cdcf@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/rt5631.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c
index 9a4cb45e37d4..a64e66c2d3c4 100644
--- a/sound/soc/codecs/rt5631.c
+++ b/sound/soc/codecs/rt5631.c
@@ -1693,7 +1693,7 @@ static const struct regmap_config rt5631_regmap_config = {
.max_register = RT5631_VENDOR_ID2,
.reg_defaults = rt5631_reg,
.num_reg_defaults = ARRAY_SIZE(rt5631_reg),
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
.use_single_read = true,
.use_single_write = true,
};