summaryrefslogtreecommitdiff
path: root/drivers/mfd/da9052-core.c
diff options
context:
space:
mode:
authorBo Liu <liubo03@inspur.com>2024-02-06 02:13:03 -0500
committerLee Jones <lee@kernel.org>2024-02-23 14:58:04 +0000
commit45900612fa63cd868e05a69e54476d7179861287 (patch)
treee3d0ff49e5277a575fb0dfc3070150d40503445d /drivers/mfd/da9052-core.c
parent1136eeaa41edd95b7aee9f4c6f97a1c50742c7e8 (diff)
downloadlwn-45900612fa63cd868e05a69e54476d7179861287.tar.gz
lwn-45900612fa63cd868e05a69e54476d7179861287.zip
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/da9052-core.c')
-rw-r--r--drivers/mfd/da9052-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/da9052-core.c b/drivers/mfd/da9052-core.c
index 150448cd2eb0..dc85801b9fa0 100644
--- a/drivers/mfd/da9052-core.c
+++ b/drivers/mfd/da9052-core.c
@@ -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,