Skip to content

Commit fc8e107

Browse files
broonielag-linaro
authored andcommitted
leds: lp3952: 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 5d97716 commit fc8e107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/leds-lp3952.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static const struct regmap_config lp3952_regmap = {
204204
.reg_bits = 8,
205205
.val_bits = 8,
206206
.max_register = REG_MAX,
207-
.cache_type = REGCACHE_RBTREE,
207+
.cache_type = REGCACHE_MAPLE,
208208
};
209209

210210
static int lp3952_probe(struct i2c_client *client)

0 commit comments

Comments
 (0)