mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 22:05:08 +00:00
mfd: rohm: 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> Acked-by: Matti Vaittinen <mazziesaccount@gmail.com> Link: https://lore.kernel.org/r/20240206071314.8721-12-liubo03@inspur.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
9261cd0473
commit
6c93d55554
@ -197,7 +197,7 @@ static const struct regmap_config bd71815_regmap = {
|
||||
.val_bits = 8,
|
||||
.volatile_table = &bd71815_volatile_regs,
|
||||
.max_register = BD71815_MAX_REGISTER - 1,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
};
|
||||
|
||||
static const struct regmap_config bd71828_regmap = {
|
||||
@ -205,7 +205,7 @@ static const struct regmap_config bd71828_regmap = {
|
||||
.val_bits = 8,
|
||||
.volatile_table = &bd71828_volatile_regs,
|
||||
.max_register = BD71828_MAX_REGISTER,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -87,7 +87,7 @@ static const struct regmap_config bd718xx_regmap_config = {
|
||||
.val_bits = 8,
|
||||
.volatile_table = &volatile_regs,
|
||||
.max_register = BD718XX_MAX_REGISTER - 1,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
};
|
||||
|
||||
static int bd718xx_init_press_duration(struct regmap *regmap,
|
||||
|
@ -62,7 +62,7 @@ static struct regmap_config bd957x_regmap = {
|
||||
.val_bits = 8,
|
||||
.volatile_table = &volatile_regs,
|
||||
.max_register = BD957X_MAX_REGISTER,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
};
|
||||
|
||||
static struct regmap_irq bd9576_irqs[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user