ASoC: cs4234: Use maple tree register cache
authorMark Brown <broonie@kernel.org>
Sat, 10 Jun 2023 13:56:25 +0000 (14:56 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 13 Jun 2023 11:11:04 +0000 (12:11 +0100)
The cs4234 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.

Acked-by: David Rhodes <david.rhodes@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230609-asoc-cirrus-maple-v1-5-b806c4cbd1d4@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4234.c

index 2d53a440a1070e8047d2b0ee66a0821c451c7c86..69287ba7e955837bec292ca0595b34a4d001f099 100644 (file)
@@ -675,7 +675,7 @@ static const struct regmap_config cs4234_regmap = {
        .writeable_reg = cs4234_writeable_register,
        .reg_defaults = cs4234_default_reg,
        .num_reg_defaults = ARRAY_SIZE(cs4234_default_reg),
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
        .use_single_read = true,
        .use_single_write = true,
 };