Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power: supply: bd99954: 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-2-liubo03@inspur.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Bo Liu and committed by
Sebastian Reichel
08573670 68b6cf40

+1 -1
+1 -1
drivers/power/supply/bd99954-charger.c
··· 156 156 .reg_stride = 1, 157 157 158 158 .max_register = 3 * 0x100, 159 - .cache_type = REGCACHE_RBTREE, 159 + .cache_type = REGCACHE_MAPLE, 160 160 161 161 .ranges = regmap_range_cfg, 162 162 .num_ranges = ARRAY_SIZE(regmap_range_cfg),