Skip to content

Commit fc12429

Browse files
broonielag-linaro
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent aaca37a commit fc12429

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mfd/max77620.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static const struct regmap_config max77620_regmap_config = {
172172
.reg_bits = 8,
173173
.val_bits = 8,
174174
.max_register = MAX77620_REG_DVSSD4 + 1,
175-
.cache_type = REGCACHE_RBTREE,
175+
.cache_type = REGCACHE_MAPLE,
176176
.rd_table = &max77620_readable_table,
177177
.wr_table = &max77620_writable_table,
178178
.volatile_table = &max77620_volatile_table,
@@ -184,7 +184,7 @@ static const struct regmap_config max20024_regmap_config = {
184184
.reg_bits = 8,
185185
.val_bits = 8,
186186
.max_register = MAX20024_REG_MAX_ADD + 1,
187-
.cache_type = REGCACHE_RBTREE,
187+
.cache_type = REGCACHE_MAPLE,
188188
.rd_table = &max20024_readable_table,
189189
.wr_table = &max77620_writable_table,
190190
.volatile_table = &max77620_volatile_table,
@@ -213,7 +213,7 @@ static const struct regmap_config max77663_regmap_config = {
213213
.reg_bits = 8,
214214
.val_bits = 8,
215215
.max_register = MAX77620_REG_CID5 + 1,
216-
.cache_type = REGCACHE_RBTREE,
216+
.cache_type = REGCACHE_MAPLE,
217217
.rd_table = &max77663_readable_table,
218218
.wr_table = &max77663_writable_table,
219219
.volatile_table = &max77620_volatile_table,

0 commit comments

Comments
 (0)