Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: ade9000: 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@inspur.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Chu Guangqing and committed by
Jonathan Cameron
e5191f62 49708f45

+1 -1
+1 -1
drivers/iio/adc/ade9000.c
··· 1629 1629 .val_bits = 32, 1630 1630 .max_register = 0x6bc, 1631 1631 .zero_flag_mask = true, 1632 - .cache_type = REGCACHE_RBTREE, 1632 + .cache_type = REGCACHE_MAPLE, 1633 1633 .reg_read = ade9000_spi_read_reg, 1634 1634 .reg_write = ade9000_spi_write_reg, 1635 1635 .volatile_reg = ade9000_is_volatile_reg,