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

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

authored by

Mark Brown and committed by
Lee Jones
3d14b0f7 4207abf3

+3 -3
+3 -3
drivers/mfd/wm8994-regmap.c
··· 1238 1238 .reg_bits = 16, 1239 1239 .val_bits = 16, 1240 1240 1241 - .cache_type = REGCACHE_RBTREE, 1241 + .cache_type = REGCACHE_MAPLE, 1242 1242 1243 1243 .reg_defaults = wm1811_defaults, 1244 1244 .num_reg_defaults = ARRAY_SIZE(wm1811_defaults), ··· 1253 1253 .reg_bits = 16, 1254 1254 .val_bits = 16, 1255 1255 1256 - .cache_type = REGCACHE_RBTREE, 1256 + .cache_type = REGCACHE_MAPLE, 1257 1257 1258 1258 .reg_defaults = wm8994_defaults, 1259 1259 .num_reg_defaults = ARRAY_SIZE(wm8994_defaults), ··· 1268 1268 .reg_bits = 16, 1269 1269 .val_bits = 16, 1270 1270 1271 - .cache_type = REGCACHE_RBTREE, 1271 + .cache_type = REGCACHE_MAPLE, 1272 1272 1273 1273 .reg_defaults = wm8958_defaults, 1274 1274 .num_reg_defaults = ARRAY_SIZE(wm8958_defaults),