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

authored by

Chu Guangqing and committed by
Jonathan Cameron
698dcf54 52d182b2

+1 -1
+1 -1
drivers/iio/light/apds9960.c
··· 234 234 .reg_defaults = apds9960_reg_defaults, 235 235 .num_reg_defaults = ARRAY_SIZE(apds9960_reg_defaults), 236 236 .max_register = APDS9960_REG_GFIFO_DIR(RIGHT), 237 - .cache_type = REGCACHE_RBTREE, 237 + .cache_type = REGCACHE_MAPLE, 238 238 }; 239 239 240 240 static const struct iio_event_spec apds9960_pxs_event_spec[] = {