gpio: fx6408: Convert to use maple tree register cache
authorMark Brown <broonie@kernel.org>
Fri, 29 Sep 2023 14:11:24 +0000 (16:11 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 2 Oct 2023 06:58:01 +0000 (08:58 +0200)
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>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-fxl6408.c

index c14b5cc..9915498 100644 (file)
@@ -84,7 +84,7 @@ static const struct regmap_config regmap = {
        .rd_table = &rd_table,
        .volatile_table = &volatile_table,
 
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
        .num_reg_defaults_raw = FXL6408_REG_INT_STS + 1,
 };