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

hwmon: (max31760) 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/20240202071927.41213-1-liubo03@inspur.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Bo Liu and committed by
Guenter Roeck
7a04f015 6c224da4

+1 -1
+1 -1
drivers/hwmon/max31760.c
··· 60 60 .reg_bits = 8, 61 61 .val_bits = 8, 62 62 .max_register = 0x5B, 63 - .cache_type = REGCACHE_RBTREE, 63 + .cache_type = REGCACHE_MAPLE, 64 64 .volatile_reg = max31760_volatile_reg, 65 65 }; 66 66