diff options
author | Mark Brown <broonie@kernel.org> | 2023-06-10 16:59:54 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-06-19 14:59:45 +0300 |
commit | ce44a03db73f7ce7cca152e07bd9cbfc3c10a0ba (patch) | |
tree | 926dc654c45472cd67a8175b109ccd4564c9ee52 | |
parent | 29890a15865deaf7f446119bcb5617b0cc76be03 (diff) | |
download | linux-ce44a03db73f7ce7cca152e07bd9cbfc3c10a0ba.tar.xz |
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 <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230609-regulator-ltc-maple-v1-2-08c15181f8b2@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/ltc3676.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ltc3676.c b/drivers/regulator/ltc3676.c index 2a225c722564..73d511eb1c1d 100644 --- a/drivers/regulator/ltc3676.c +++ b/drivers/regulator/ltc3676.c @@ -261,7 +261,7 @@ static const struct regmap_config ltc3676_regmap_config = { .max_register = LTC3676_CLIRQ, .use_single_read = true, .use_single_write = true, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static irqreturn_t ltc3676_isr(int irq, void *dev_id) |