]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: light: apds9306: convert to use maple tree register cache
authorChu Guangqing <chuguangqing@inspur.com>
Fri, 24 Oct 2025 07:38:22 +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>
Acked-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/apds9306.c

index 389125675caa4edcc2dcd31a4b4615f119ec7e6e..7e68cca0edfa5159b1e789363a4425c86876dd39 100644 (file)
@@ -350,7 +350,7 @@ static const struct regmap_config apds9306_regmap = {
        .volatile_table = &apds9306_volatile_table,
        .precious_table = &apds9306_precious_table,
        .max_register = APDS9306_ALS_THRES_VAR_REG,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
 };
 
 static const struct reg_field apds9306_rf_sw_reset =