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

leds: lm392x: 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-3-ba5f9dcb1e75@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Mark Brown and committed by
Lee Jones
5d97716f 65e9b513

+1 -1
+1 -1
drivers/leds/leds-lm3692x.c
··· 139 139 .max_register = LM3692X_FAULT_FLAGS, 140 140 .reg_defaults = lm3692x_reg_defs, 141 141 .num_reg_defaults = ARRAY_SIZE(lm3692x_reg_defs), 142 - .cache_type = REGCACHE_RBTREE, 142 + .cache_type = REGCACHE_MAPLE, 143 143 }; 144 144 145 145 static int lm3692x_fault_check(struct lm3692x_led *led)