summaryrefslogtreecommitdiff
path: root/drivers/mfd/da9150-core.c
diff options
context:
space:
mode:
authorBo Liu <liubo03@inspur.com>2024-02-06 10:13:03 +0300
committerLee Jones <lee@kernel.org>2024-02-23 17:58:04 +0300
commit45900612fa63cd868e05a69e54476d7179861287 (patch)
treee3d0ff49e5277a575fb0dfc3070150d40503445d /drivers/mfd/da9150-core.c
parent1136eeaa41edd95b7aee9f4c6f97a1c50742c7e8 (diff)
downloadlinux-45900612fa63cd868e05a69e54476d7179861287.tar.xz
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>
Diffstat (limited to 'drivers/mfd/da9150-core.c')
-rw-r--r--drivers/mfd/da9150-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/da9150-core.c b/drivers/mfd/da9150-core.c
index 94d621e20635..5c59cc869fb3 100644
--- a/drivers/mfd/da9150-core.c
+++ b/drivers/mfd/da9150-core.c
@@ -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,
};