ASoC: es8328: Use maple tree register cache
authorMark Brown <broonie@kernel.org>
Sat, 10 Jun 2023 11:16:38 +0000 (12:16 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2023 11:58:30 +0000 (12:58 +0100)
The es8328 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-es-maple-v1-2-45ada77f5643@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c

index 160adc706cc69e07ac7b71233a8776ccca9baf31..0bd9ba5a11b4e5b928743dff6aa85330e7e38d42 100644 (file)
@@ -822,7 +822,7 @@ const struct regmap_config es8328_regmap_config = {
        .reg_bits       = 8,
        .val_bits       = 8,
        .max_register   = ES8328_REG_MAX,
-       .cache_type     = REGCACHE_RBTREE,
+       .cache_type     = REGCACHE_MAPLE,
        .use_single_read = true,
        .use_single_write = true,
 };