]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
power: supply: rt9455: convert to use maple tree register cache
authorBo Liu <liubo03@inspur.com>
Fri, 28 Feb 2025 08:02:35 +0000 (03:02 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 8 Mar 2025 00:30:54 +0000 (01:30 +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://lore.kernel.org/r/20250228080236.2759-9-liubo03@inspur.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/rt9455_charger.c

index 64a23e3d7bb00f03a548a551d3fd523299fd00cd..ff15e20ec70af86f6c468b94d1d1e803d241ee79 100644 (file)
@@ -1579,7 +1579,7 @@ static const struct regmap_config rt9455_regmap_config = {
        .writeable_reg  = rt9455_is_writeable_reg,
        .volatile_reg   = rt9455_is_volatile_reg,
        .max_register   = RT9455_REG_MASK3,
-       .cache_type     = REGCACHE_RBTREE,
+       .cache_type     = REGCACHE_MAPLE,
 };
 
 static int rt9455_probe(struct i2c_client *client)