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

mfd: stpmic1: Convert 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.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Link: https://lore.kernel.org/r/20240206071314.8721-18-liubo03@inspur.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Bo Liu and committed by
Lee Jones
12edc9a8 cac3d770

+1 -1
+1 -1
drivers/mfd/stpmic1.c
··· 63 63 static const struct regmap_config stpmic1_regmap_config = { 64 64 .reg_bits = 8, 65 65 .val_bits = 8, 66 - .cache_type = REGCACHE_RBTREE, 66 + .cache_type = REGCACHE_MAPLE, 67 67 .max_register = PMIC_MAX_REGISTER_ADDRESS, 68 68 .rd_table = &stpmic1_readable_table, 69 69 .wr_table = &stpmic1_writeable_table,