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: cs47l24: 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 cs47l24 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-2-16dacae402a8@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Mark Brown and committed by
Lee Jones
01f71e73 4ffee291

+1 -1
+1 -1
drivers/mfd/cs47l24-tables.c
··· 1616 1616 .readable_reg = cs47l24_readable_register, 1617 1617 .volatile_reg = cs47l24_volatile_register, 1618 1618 1619 - .cache_type = REGCACHE_RBTREE, 1619 + .cache_type = REGCACHE_MAPLE, 1620 1620 .reg_defaults = cs47l24_reg_default, 1621 1621 .num_reg_defaults = ARRAY_SIZE(cs47l24_reg_default), 1622 1622 };