]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regulator: pf9453: convert to use maple tree register cache
authorBo Liu <liubo03@inspur.com>
Thu, 24 Apr 2025 01:08:55 +0000 (21:08 -0400)
committerMark Brown <broonie@kernel.org>
Thu, 24 Apr 2025 11:56:29 +0000 (12:56 +0100)
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://patch.msgid.link/20250424010855.2662-1-liubo03@inspur.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pf9453-regulator.c

index b58c9c0a5022d672d32b1bd1bf6f17baef27e837..be627f49b61762bb2b3a1830c14ae3a7255034e2 100644 (file)
@@ -214,7 +214,7 @@ static const struct regmap_config pf9453_regmap_config = {
        .val_bits = 8,
        .volatile_table = &pf9453_volatile_regs,
        .max_register = PF9453_MAX_REG - 1,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
 };
 
 /*