summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/cap11xx.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-10-01 01:43:39 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-12-12 21:39:09 -0800
commit718963d94197626f83544b63ca5581d16cffdac2 (patch)
treea753afaab918910fa5fc77f12b3d2d6606d79254 /drivers/input/keyboard/cap11xx.c
parent39bd68d422ba085997fb1f26160d7c686915b3cb (diff)
Input: cap11xx - 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> Link: https://lore.kernel.org/r/20231001-input-maple-v1-2-ed3716051431@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/cap11xx.c')
-rw-r--r--drivers/input/keyboard/cap11xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/cap11xx.c b/drivers/input/keyboard/cap11xx.c
index 8e25d7d5e64d..52fba9ee7c1d 100644
--- a/drivers/input/keyboard/cap11xx.c
+++ b/drivers/input/keyboard/cap11xx.c
@@ -187,7 +187,7 @@ static const struct regmap_config cap11xx_regmap_config = {
.reg_defaults = cap11xx_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(cap11xx_reg_defaults),
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
.volatile_reg = cap11xx_volatile_reg,
};