From: Chu Guangqing Date: Fri, 24 Oct 2025 07:38:22 +0000 (+0800) Subject: iio: light: apds9306: convert to use maple tree register cache X-Git-Tag: v6.19-rc1~65^2~58^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52d182b2ff99d5e50e763ad5a5a874da3b49434f;p=thirdparty%2Fkernel%2Flinux.git iio: light: apds9306: convert to use maple tree register cache 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 Acked-by: Subhajit Ghosh Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/apds9306.c b/drivers/iio/light/apds9306.c index 389125675caa4..7e68cca0edfa5 100644 --- a/drivers/iio/light/apds9306.c +++ b/drivers/iio/light/apds9306.c @@ -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 =