mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
gpio: pca953x: 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: Mark Brown <broonie@kernel.org> Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
7d09929048
commit
bad66884ac
1 changed files with 2 additions and 2 deletions
|
@ -422,7 +422,7 @@ static const struct regmap_config pca953x_i2c_regmap = {
|
|||
.volatile_reg = pca953x_volatile_register,
|
||||
|
||||
.disable_locking = true,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.max_register = 0x7f,
|
||||
};
|
||||
|
||||
|
@ -438,7 +438,7 @@ static const struct regmap_config pca953x_ai_i2c_regmap = {
|
|||
.volatile_reg = pca953x_volatile_register,
|
||||
|
||||
.disable_locking = true,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.max_register = 0x7f,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue