Skip to content

Commit

Permalink
mfd: twl: Convert to use maple tree register cache
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
broonie authored and lag-linaro committed Nov 1, 2023
1 parent 214fbbd commit 1c943df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/twl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static const struct regmap_config twl4030_regmap_config[4] = {

.reg_defaults = twl4030_49_defaults,
.num_reg_defaults = ARRAY_SIZE(twl4030_49_defaults),
.cache_type = REGCACHE_RBTREE,
.cache_type = REGCACHE_MAPLE,
},
{
/* Address 0x4a */
Expand Down

0 comments on commit 1c943df

Please sign in to comment.