Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: wcd934x: Update to use maple tree register cache

The maple tree register cache is based on a much more modern data structure
than the rbtree cache and makes optimisation choices which are probably
more appropriate for modern systems than those made by the rbtree cache. In
v6.5 it has also acquired the ability to generate multi-register writes in
sync operations, bringing performance up to parity with the rbtree cache
there.

Update the wcd934x to use the more modern data structure.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230912-mfd-wcd934x-maple-v2-1-292a154113e3@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Mark Brown and committed by
Lee Jones
a50afa31 a8e49836

+1 -1
+1 -1
drivers/mfd/wcd934x.c
··· 112 112 static struct regmap_config wcd934x_regmap_config = { 113 113 .reg_bits = 16, 114 114 .val_bits = 8, 115 - .cache_type = REGCACHE_RBTREE, 115 + .cache_type = REGCACHE_MAPLE, 116 116 .max_register = 0xffff, 117 117 .can_multi_write = true, 118 118 .ranges = wcd934x_ranges,