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

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

authored by

Bo Liu and committed by
Sebastian Reichel
6d166a69 08573670

+1 -1
+1 -1
drivers/power/supply/bq24257_charger.c
··· 113 113 .val_bits = 8, 114 114 115 115 .max_register = BQ24257_REG_7, 116 - .cache_type = REGCACHE_RBTREE, 116 + .cache_type = REGCACHE_MAPLE, 117 117 118 118 .volatile_reg = bq24257_is_volatile_reg, 119 119 };