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

iio: light: apds9306: 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>
Acked-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Chu Guangqing and committed by
Jonathan Cameron
52d182b2 00d3bd9e

+1 -1
+1 -1
drivers/iio/light/apds9306.c
··· 350 350 .volatile_table = &apds9306_volatile_table, 351 351 .precious_table = &apds9306_precious_table, 352 352 .max_register = APDS9306_ALS_THRES_VAR_REG, 353 - .cache_type = REGCACHE_RBTREE, 353 + .cache_type = REGCACHE_MAPLE, 354 354 }; 355 355 356 356 static const struct reg_field apds9306_rf_sw_reset =