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

mfd: rk8xx: 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: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20231001-mfd-rk88x-maple-v1-1-90434cfb2f90@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Mark Brown and committed by
Lee Jones
7f70d459 1c943dfd

+3 -3
+3 -3
drivers/mfd/rk8xx-i2c.c
··· 80 80 .reg_bits = 8, 81 81 .val_bits = 8, 82 82 .max_register = RK818_USB_CTRL_REG, 83 - .cache_type = REGCACHE_RBTREE, 83 + .cache_type = REGCACHE_MAPLE, 84 84 .volatile_reg = rk808_is_volatile_reg, 85 85 }; 86 86 ··· 88 88 .reg_bits = 8, 89 89 .val_bits = 8, 90 90 .max_register = RK805_OFF_SOURCE_REG, 91 - .cache_type = REGCACHE_RBTREE, 91 + .cache_type = REGCACHE_MAPLE, 92 92 .volatile_reg = rk808_is_volatile_reg, 93 93 }; 94 94 ··· 96 96 .reg_bits = 8, 97 97 .val_bits = 8, 98 98 .max_register = RK808_IO_POL_REG, 99 - .cache_type = REGCACHE_RBTREE, 99 + .cache_type = REGCACHE_MAPLE, 100 100 .volatile_reg = rk808_is_volatile_reg, 101 101 }; 102 102