diff options
author | Mark Brown <broonie@kernel.org> | 2023-06-10 14:59:07 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-06-10 07:37:02 -0700 |
commit | 30841ce37321fa66c58ee79ec7b17a45df2a6b9e (patch) | |
tree | ab1cd9b1b64d21bdf83adbf587211ede90fa76c9 | |
parent | 317840cfd665d69a728424d1a85b80264442357f (diff) |
hwmon: (lm75) Use maple tree register cache
The lm75 is only capable of performing single register read and write
operations which means it gains no advantage from using a rbtree register
cache, convert it to using the more modern maple tree register cache
instead. This should be more efficient.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230609-hwmon-maple-v1-1-8edacce86b28@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/lm75.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index 182aeb388523..72e634d1b857 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -548,7 +548,7 @@ static const struct regmap_config lm75_regmap_config = { .writeable_reg = lm75_is_writeable_reg, .volatile_reg = lm75_is_volatile_reg, .val_format_endian = REGMAP_ENDIAN_BIG, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .use_single_read = true, .use_single_write = true, }; |