summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt1011.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-06-10 14:57:47 +0100
committerMark Brown <broonie@kernel.org>2023-06-19 12:58:33 +0100
commit39da3e152dc664ef13c0b8c1064cba5415767aa3 (patch)
treec4070b2f9abef835416390823e95b9a82c135670 /sound/soc/codecs/rt1011.c
parent424a64a2bbc6014c76b9ef6356d38ad8e66d95ad (diff)
downloadlinux-stable-39da3e152dc664ef13c0b8c1064cba5415767aa3.tar.gz
linux-stable-39da3e152dc664ef13c0b8c1064cba5415767aa3.tar.bz2
linux-stable-39da3e152dc664ef13c0b8c1064cba5415767aa3.zip
ASoC: rt1011: Use maple tree register cache
The rt1011 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-1-729c6553cdcf@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1011.c')
-rw-r--r--sound/soc/codecs/rt1011.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt1011.c b/sound/soc/codecs/rt1011.c
index 4ceb410c5024..42bac8150f62 100644
--- a/sound/soc/codecs/rt1011.c
+++ b/sound/soc/codecs/rt1011.c
@@ -2184,7 +2184,7 @@ static const struct regmap_config rt1011_regmap = {
.max_register = RT1011_MAX_REG + 1,
.volatile_reg = rt1011_volatile_register,
.readable_reg = rt1011_readable_register,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
.reg_defaults = rt1011_reg,
.num_reg_defaults = ARRAY_SIZE(rt1011_reg),
.use_single_read = true,