[PATCH 2/4] iio: light: veml3235: convert to use maple tree register cache

From: Chu Guangqing
Date: Fri Oct 24 2025 - 03:40:58 EST


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: Chu Guangqing <chuguangqing@xxxxxxxxxx>
---
drivers/iio/light/veml3235.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/light/veml3235.c b/drivers/iio/light/veml3235.c
index 77c9ae17ed47..9309ad83ca9e 100644
--- a/drivers/iio/light/veml3235.c
+++ b/drivers/iio/light/veml3235.c
@@ -154,7 +154,7 @@ static const struct regmap_config veml3235_regmap_config = {
.rd_table = &veml3235_readable_table,
.wr_table = &veml3235_writable_table,
.volatile_table = &veml3235_volatile_table,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};

static int veml3235_get_it(struct veml3235_data *data, int *val, int *val2)
--
2.43.7