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

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

authored by

Bo Liu and committed by
Guenter Roeck
f8fec5f3 ba468d4b

+1 -1
+1 -1
drivers/hwmon/jc42.c
··· 497 497 .writeable_reg = jc42_writable_reg, 498 498 .readable_reg = jc42_readable_reg, 499 499 .volatile_reg = jc42_volatile_reg, 500 - .cache_type = REGCACHE_RBTREE, 500 + .cache_type = REGCACHE_MAPLE, 501 501 }; 502 502 503 503 static int jc42_probe(struct i2c_client *client)