diff options
author | Bo Liu <liubo03@inspur.com> | 2024-02-02 10:14:52 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-02-25 23:37:36 +0300 |
commit | 9c440cf0c68fa30dc3072b8f1755f2d91863d7d6 (patch) | |
tree | ce85c40d28e6260d404e7c772bfee31253b1ea8b /drivers/hwmon/emc1403.c | |
parent | f5b75bde41f23de21d3e336e25b7c4deb47b4372 (diff) | |
download | linux-9c440cf0c68fa30dc3072b8f1755f2d91863d7d6.tar.xz |
hwmon: (emc1403) 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/20240202071452.40778-1-liubo03@inspur.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/emc1403.c')
-rw-r--r-- | drivers/hwmon/emc1403.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index 1332e4ac078c..d370efd6f986 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c @@ -385,7 +385,7 @@ static bool emc1403_regmap_is_volatile(struct device *dev, unsigned int reg) static const struct regmap_config emc1403_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = emc1403_regmap_is_volatile, }; |