mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
mfd: wolfson: 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> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20240206071314.8721-11-liubo03@inspur.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
baaa1b8e7d
commit
9261cd0473
@ -1922,7 +1922,7 @@ const struct regmap_config wm5102_spi_regmap = {
|
||||
.readable_reg = wm5102_readable_register,
|
||||
.volatile_reg = wm5102_volatile_register,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = wm5102_reg_default,
|
||||
.num_reg_defaults = ARRAY_SIZE(wm5102_reg_default),
|
||||
};
|
||||
|
@ -3202,7 +3202,7 @@ const struct regmap_config wm5110_spi_regmap = {
|
||||
.readable_reg = wm5110_readable_register,
|
||||
.volatile_reg = wm5110_volatile_register,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = wm5110_reg_default,
|
||||
.num_reg_defaults = ARRAY_SIZE(wm5110_reg_default),
|
||||
};
|
||||
|
@ -325,7 +325,7 @@ const struct regmap_config wm8350_regmap = {
|
||||
.reg_bits = 8,
|
||||
.val_bits = 16,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
|
||||
.max_register = WM8350_MAX_REGISTER,
|
||||
.readable_reg = wm8350_readable,
|
||||
|
@ -100,7 +100,7 @@ static const struct regmap_config wm8400_regmap_config = {
|
||||
|
||||
.volatile_reg = wm8400_volatile,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -95,7 +95,7 @@ static const struct regmap_config wm9705_regmap_config = {
|
||||
.reg_stride = 2,
|
||||
.val_bits = 16,
|
||||
.max_register = 0x7e,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
|
||||
.reg_defaults = wm9705_reg_defaults,
|
||||
.num_reg_defaults = ARRAY_SIZE(wm9705_reg_defaults),
|
||||
@ -163,7 +163,7 @@ static const struct regmap_config wm9712_regmap_config = {
|
||||
.reg_stride = 2,
|
||||
.val_bits = 16,
|
||||
.max_register = 0x7e,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
|
||||
.reg_defaults = wm9712_reg_defaults,
|
||||
.num_reg_defaults = ARRAY_SIZE(wm9712_reg_defaults),
|
||||
@ -234,7 +234,7 @@ static const struct regmap_config wm9713_regmap_config = {
|
||||
.reg_stride = 2,
|
||||
.val_bits = 16,
|
||||
.max_register = 0x7e,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
|
||||
.reg_defaults = wm9713_reg_defaults,
|
||||
.num_reg_defaults = ARRAY_SIZE(wm9713_reg_defaults),
|
||||
|
Loading…
Reference in New Issue
Block a user