Skip to content

Commit 29890a1

Browse files
committed
regulator: ltc3589: Use maple tree register cache
The ltc3589 can only support single register read and write operations so does not benefit from block writes. This means it gets no benefit from using the rbtree register cache over the maple tree register cache so convert it to use maple trees instead, it is more modern. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d3b555e commit 29890a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/ltc3589.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static const struct regmap_config ltc3589_regmap_config = {
348348
.num_reg_defaults = ARRAY_SIZE(ltc3589_reg_defaults),
349349
.use_single_read = true,
350350
.use_single_write = true,
351-
.cache_type = REGCACHE_RBTREE,
351+
.cache_type = REGCACHE_MAPLE,
352352
};
353353

354354
static irqreturn_t ltc3589_isr(int irq, void *dev_id)

0 commit comments

Comments
 (0)