From: Bo Liu Date: Wed, 20 Mar 2024 08:57:29 +0000 (-0400) Subject: regulator: da9211: convert to use maple tree register cache X-Git-Tag: v6.10-rc1~172^2~12^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03ddbcbe2f1ca9fac2759849be6714d8e82aa331;p=thirdparty%2Fkernel%2Flinux.git regulator: da9211: 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 Link: https://msgid.link/r/20240320085740.4604-3-liubo03@inspur.com Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c index af383ff0fe573..d8b39ea3de0e1 100644 --- a/drivers/regulator/da9211-regulator.c +++ b/drivers/regulator/da9211-regulator.c @@ -68,7 +68,7 @@ static const struct regmap_config da9211_regmap_config = { .val_bits = 8, .max_register = 5 * 128, .volatile_reg = da9211_volatile_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .ranges = da9211_regmap_range, .num_ranges = ARRAY_SIZE(da9211_regmap_range), };