Skip to content

Commit a92d87d

Browse files
Bo Liugroeck
authored andcommitted
hwmon: (isl28022, nct7363) 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 25be318 commit a92d87d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/hwmon/isl28022.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static const struct regmap_config isl28022_regmap_config = {
301301
.writeable_reg = isl28022_is_writeable_reg,
302302
.volatile_reg = isl28022_is_volatile_reg,
303303
.val_format_endian = REGMAP_ENDIAN_BIG,
304-
.cache_type = REGCACHE_RBTREE,
304+
.cache_type = REGCACHE_MAPLE,
305305
.use_single_read = true,
306306
.use_single_write = true,
307307
};

drivers/hwmon/nct7363.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static const struct regmap_config nct7363_regmap_config = {
391391
.val_bits = 8,
392392
.use_single_read = true,
393393
.use_single_write = true,
394-
.cache_type = REGCACHE_RBTREE,
394+
.cache_type = REGCACHE_MAPLE,
395395
.volatile_reg = nct7363_regmap_is_volatile,
396396
};
397397

0 commit comments

Comments
 (0)