]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: light: veml3235: convert to use maple tree register cache
authorChu Guangqing <chuguangqing@inspur.com>
Fri, 24 Oct 2025 07:38:21 +0000 (15:38 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 12:57:05 +0000 (12:57 +0000)
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@inspur.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/veml3235.c

index 77c9ae17ed4715a453075fcdd6a17c21e52bf137..9309ad83ca9eca6a2f6399dd463fc6e3f0246e9b 100644 (file)
@@ -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)