aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2023-09-29 17:23:38 +0200
committerLee Jones <[email protected]>2023-11-01 11:29:03 +0000
commitfc8e107e7b15906a92afbeed9b289cc695984d5e (patch)
treebc0503c8ded8762f45b663aa1f73b33136e8bb89
parent5d97716f3fd2bb0f4462df23e4e1088dfcd85e5d (diff)
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]>
-rw-r--r--drivers/leds/leds-lp3952.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lp3952.c b/drivers/leds/leds-lp3952.c
index 62ade3f05a87..5d18bbfd1f23 100644
--- a/drivers/leds/leds-lp3952.c
+++ b/drivers/leds/leds-lp3952.c
@@ -204,7 +204,7 @@ static const struct regmap_config lp3952_regmap = {
.reg_bits = 8,
.val_bits = 8,
.max_register = REG_MAX,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};
static int lp3952_probe(struct i2c_client *client)