mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
mfd: dialog: 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> Link: https://lore.kernel.org/r/20240206071314.8721-8-liubo03@inspur.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
1136eeaa41
commit
45900612fa
@ -533,7 +533,7 @@ const struct regmap_config da9052_regmap_config = {
|
||||
.reg_bits = 8,
|
||||
.val_bits = 8,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
|
||||
.max_register = DA9052_PAGE1_CON_REG,
|
||||
.readable_reg = da9052_reg_readable,
|
||||
|
@ -245,7 +245,7 @@ const struct regmap_config da9055_regmap_config = {
|
||||
.reg_bits = 8,
|
||||
.val_bits = 8,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
|
||||
.max_register = DA9055_MAX_REGISTER_CNT,
|
||||
.readable_reg = da9055_register_readable,
|
||||
|
@ -476,7 +476,7 @@ static struct regmap_config da9061_regmap_config = {
|
||||
.ranges = da9061_range_cfg,
|
||||
.num_ranges = ARRAY_SIZE(da9061_range_cfg),
|
||||
.max_register = DA9062AA_CONFIG_ID,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.rd_table = &da9061_aa_readable_table,
|
||||
.wr_table = &da9061_aa_writeable_table,
|
||||
.volatile_table = &da9061_aa_volatile_table,
|
||||
@ -582,7 +582,7 @@ static struct regmap_config da9062_regmap_config = {
|
||||
.ranges = da9062_range_cfg,
|
||||
.num_ranges = ARRAY_SIZE(da9062_range_cfg),
|
||||
.max_register = DA9062AA_CONFIG_ID,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.rd_table = &da9062_aa_readable_table,
|
||||
.wr_table = &da9062_aa_writeable_table,
|
||||
.volatile_table = &da9062_aa_volatile_table,
|
||||
|
@ -342,7 +342,7 @@ static struct regmap_config da9063_regmap_config = {
|
||||
.num_ranges = ARRAY_SIZE(da9063_range_cfg),
|
||||
.max_register = DA9063_REG_CONFIG_ID,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
};
|
||||
|
||||
static const struct of_device_id da9063_dt_ids[] = {
|
||||
|
@ -169,7 +169,7 @@ static const struct regmap_config da9150_regmap_config = {
|
||||
.num_ranges = ARRAY_SIZE(da9150_range_cfg),
|
||||
.max_register = DA9150_TBAT_RES_B,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
|
||||
.volatile_reg = da9150_volatile_reg,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user