Skip to content

Commit ce44a03

Browse files
committed
regulator: ltc3676: Use maple tree register cache
The ltc3676 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 29890a1 commit ce44a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/ltc3676.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static const struct regmap_config ltc3676_regmap_config = {
261261
.max_register = LTC3676_CLIRQ,
262262
.use_single_read = true,
263263
.use_single_write = true,
264-
.cache_type = REGCACHE_RBTREE,
264+
.cache_type = REGCACHE_MAPLE,
265265
};
266266

267267
static irqreturn_t ltc3676_isr(int irq, void *dev_id)

0 commit comments

Comments
 (0)