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: wm5102: 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 wm5102 driver to use the more modern data structure.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230713-mfd-cirrus-maple-v1-7-16dacae402a8@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Mark Brown and committed by
Lee Jones
85627565 9300b1e5

+1 -1
+1 -1
drivers/mfd/wm5102-tables.c
··· 1938 1938 .readable_reg = wm5102_readable_register, 1939 1939 .volatile_reg = wm5102_volatile_register, 1940 1940 1941 - .cache_type = REGCACHE_RBTREE, 1941 + .cache_type = REGCACHE_MAPLE, 1942 1942 .reg_defaults = wm5102_reg_default, 1943 1943 .num_reg_defaults = ARRAY_SIZE(wm5102_reg_default), 1944 1944 };