Input: qt1050 - convert to use maple tree register cache
authorMark Brown <broonie@kernel.org>
Sat, 30 Sep 2023 23:43:40 +0000 (01:43 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 13 Dec 2023 05:39:09 +0000 (21:39 -0800)
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-3-ed3716051431@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/qt1050.c

index 6953097db4456f27cc698ce208841280762f37ca..b51dfcd76038623c8ce321901c8201a05416d347 100644 (file)
@@ -213,7 +213,7 @@ static struct regmap_config qt1050_regmap_config = {
        .val_bits = 8,
        .max_register = QT1050_RES_CAL,
 
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
 
        .wr_table = &qt1050_writeable_table,
        .rd_table = &qt1050_readable_table,