]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: ade9000: convert to use maple tree register cache
authorChu Guangqing <chuguangqing@inspur.com>
Fri, 24 Oct 2025 07:38:20 +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/adc/ade9000.c

index 94e05e11abd90e2edcd71fd43092af85717b7386..2de8a718d62af03e77374bcebe702eb375391c13 100644 (file)
@@ -1629,7 +1629,7 @@ static const struct regmap_config ade9000_regmap_config = {
        .val_bits = 32,
        .max_register = 0x6bc,
        .zero_flag_mask = true,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
        .reg_read = ade9000_spi_read_reg,
        .reg_write = ade9000_spi_write_reg,
        .volatile_reg = ade9000_is_volatile_reg,