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

Configure Feed

Select the types of activity you want to include in your feed.

iio: light: veml3235: 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
00d3bd9e e5191f62

+1 -1
+1 -1
drivers/iio/light/veml3235.c
··· 154 154 .rd_table = &veml3235_readable_table, 155 155 .wr_table = &veml3235_writable_table, 156 156 .volatile_table = &veml3235_volatile_table, 157 - .cache_type = REGCACHE_RBTREE, 157 + .cache_type = REGCACHE_MAPLE, 158 158 }; 159 159 160 160 static int veml3235_get_it(struct veml3235_data *data, int *val, int *val2)