Skip to content

Commit 5d97716

Browse files
broonielag-linaro
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 65e9b51 commit 5d97716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/leds-lm3692x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static const struct regmap_config lm3692x_regmap_config = {
139139
.max_register = LM3692X_FAULT_FLAGS,
140140
.reg_defaults = lm3692x_reg_defs,
141141
.num_reg_defaults = ARRAY_SIZE(lm3692x_reg_defs),
142-
.cache_type = REGCACHE_RBTREE,
142+
.cache_type = REGCACHE_MAPLE,
143143
};
144144

145145
static int lm3692x_fault_check(struct lm3692x_led *led)

0 commit comments

Comments
 (0)