Skip to content

Commit 4fddf14

Browse files
broonielag-linaro
authored andcommitted
mfd: max8907: 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> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231001-mfd-maxim-maple-v1-3-cdfeb48a4d15@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 728f337 commit 4fddf14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/mfd/max8907.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static const struct regmap_config max8907_regmap_gen_config = {
6363
.precious_reg = max8907_gen_is_precious_reg,
6464
.writeable_reg = max8907_gen_is_writeable_reg,
6565
.max_register = MAX8907_REG_LDO20VOUT,
66-
.cache_type = REGCACHE_RBTREE,
66+
.cache_type = REGCACHE_MAPLE,
6767
};
6868

6969
static bool max8907_rtc_is_volatile_reg(struct device *dev, unsigned int reg)
@@ -108,7 +108,7 @@ static const struct regmap_config max8907_regmap_rtc_config = {
108108
.precious_reg = max8907_rtc_is_precious_reg,
109109
.writeable_reg = max8907_rtc_is_writeable_reg,
110110
.max_register = MAX8907_REG_MPL_CNTL,
111-
.cache_type = REGCACHE_RBTREE,
111+
.cache_type = REGCACHE_MAPLE,
112112
};
113113

114114
static const struct regmap_irq max8907_chg_irqs[] = {

0 commit comments

Comments
 (0)