[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251024073823.35122-5-chuguangqing@inspur.com>
Date: Fri, 24 Oct 2025 15:38:23 +0800
From: Chu Guangqing <chuguangqing@...pur.com>
To: <lars@...afoo.de>, <Michael.Hennerich@...log.com>, <jic23@...nel.org>,
<dlechner@...libre.com>, <nuno.sa@...log.com>, <andy@...nel.org>,
<subhajit.ghosh@...aklogic.com>, <javier.carrasco.cruz@...il.com>
CC: <linux-iio@...r.kernel.org>, <linux-kernel@...r.kernel.org>, Chu Guangqing
<chuguangqing@...pur.com>
Subject: [PATCH 4/4] iio: light: apds9960: 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 <chuguangqing@...pur.com>
---
drivers/iio/light/apds9960.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
index 79b202c59a0f..785c5dbe2d08 100644
--- a/drivers/iio/light/apds9960.c
+++ b/drivers/iio/light/apds9960.c
@@ -234,7 +234,7 @@ static const struct regmap_config apds9960_regmap_config = {
.reg_defaults = apds9960_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(apds9960_reg_defaults),
.max_register = APDS9960_REG_GFIFO_DIR(RIGHT),
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
};
static const struct iio_event_spec apds9960_pxs_event_spec[] = {
--
2.43.7
Powered by blists - more mailing lists