Skip to content

Commit bfa2b63

Browse files
Bo Liusre
authored andcommitted
power: supply: smb347: 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 <liubo03@inspur.com> Link: https://lore.kernel.org/r/20250228080236.2759-10-liubo03@inspur.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent af4499f commit bfa2b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/smb347-charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ static const struct regmap_config smb347_regmap = {
14881488
.max_register = SMB347_MAX_REGISTER,
14891489
.volatile_reg = smb347_volatile_reg,
14901490
.readable_reg = smb347_readable_reg,
1491-
.cache_type = REGCACHE_RBTREE,
1491+
.cache_type = REGCACHE_MAPLE,
14921492
};
14931493

14941494
static const struct regulator_ops smb347_usb_vbus_regulator_ops = {

0 commit comments

Comments
 (0)