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

hwmon: (lm83) 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: Bo Liu <liubo03@inspur.com>
Link: https://lore.kernel.org/r/20240202071800.41113-1-liubo03@inspur.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Bo Liu and committed by
Guenter Roeck
6c224da4 f8fec5f3

+1 -1
+1 -1
drivers/hwmon/lm83.c
··· 165 165 static const struct regmap_config lm83_regmap_config = { 166 166 .reg_bits = 8, 167 167 .val_bits = 8, 168 - .cache_type = REGCACHE_RBTREE, 168 + .cache_type = REGCACHE_MAPLE, 169 169 .volatile_reg = lm83_regmap_is_volatile, 170 170 .reg_read = lm83_regmap_reg_read, 171 171 .reg_write = lm83_regmap_reg_write,