mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
mfd: max77620: 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: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20231001-mfd-maxim-maple-v1-1-cdfeb48a4d15@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
aaca37ae36
commit
fc12429b40
1 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ static const struct regmap_config max77620_regmap_config = {
|
||||||
.reg_bits = 8,
|
.reg_bits = 8,
|
||||||
.val_bits = 8,
|
.val_bits = 8,
|
||||||
.max_register = MAX77620_REG_DVSSD4 + 1,
|
.max_register = MAX77620_REG_DVSSD4 + 1,
|
||||||
.cache_type = REGCACHE_RBTREE,
|
.cache_type = REGCACHE_MAPLE,
|
||||||
.rd_table = &max77620_readable_table,
|
.rd_table = &max77620_readable_table,
|
||||||
.wr_table = &max77620_writable_table,
|
.wr_table = &max77620_writable_table,
|
||||||
.volatile_table = &max77620_volatile_table,
|
.volatile_table = &max77620_volatile_table,
|
||||||
|
@ -184,7 +184,7 @@ static const struct regmap_config max20024_regmap_config = {
|
||||||
.reg_bits = 8,
|
.reg_bits = 8,
|
||||||
.val_bits = 8,
|
.val_bits = 8,
|
||||||
.max_register = MAX20024_REG_MAX_ADD + 1,
|
.max_register = MAX20024_REG_MAX_ADD + 1,
|
||||||
.cache_type = REGCACHE_RBTREE,
|
.cache_type = REGCACHE_MAPLE,
|
||||||
.rd_table = &max20024_readable_table,
|
.rd_table = &max20024_readable_table,
|
||||||
.wr_table = &max77620_writable_table,
|
.wr_table = &max77620_writable_table,
|
||||||
.volatile_table = &max77620_volatile_table,
|
.volatile_table = &max77620_volatile_table,
|
||||||
|
@ -213,7 +213,7 @@ static const struct regmap_config max77663_regmap_config = {
|
||||||
.reg_bits = 8,
|
.reg_bits = 8,
|
||||||
.val_bits = 8,
|
.val_bits = 8,
|
||||||
.max_register = MAX77620_REG_CID5 + 1,
|
.max_register = MAX77620_REG_CID5 + 1,
|
||||||
.cache_type = REGCACHE_RBTREE,
|
.cache_type = REGCACHE_MAPLE,
|
||||||
.rd_table = &max77663_readable_table,
|
.rd_table = &max77663_readable_table,
|
||||||
.wr_table = &max77663_writable_table,
|
.wr_table = &max77663_writable_table,
|
||||||
.volatile_table = &max77620_volatile_table,
|
.volatile_table = &max77620_volatile_table,
|
||||||
|
|
Loading…
Reference in a new issue