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

leds: lm3601x: 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: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230929-leds-maple-v1-1-ba5f9dcb1e75@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Mark Brown and committed by
Lee Jones
8e31906c 4a11dbf0

+1 -1
+1 -1
drivers/leds/flash/leds-lm3601x.c
··· 123 123 .max_register = LM3601X_DEV_ID_REG, 124 124 .reg_defaults = lm3601x_regmap_defs, 125 125 .num_reg_defaults = ARRAY_SIZE(lm3601x_regmap_defs), 126 - .cache_type = REGCACHE_RBTREE, 126 + .cache_type = REGCACHE_MAPLE, 127 127 .volatile_reg = lm3601x_volatile_reg, 128 128 }; 129 129