Commit 2edd6419 authored by Mark Brown's avatar Mark Brown

ASoC: ad: Update Analog Devices drivers to maple tree

Merge series from Mark Brown <broonie@kernel.org>:

The maple tree register cache has now got to feature parity with the
rbtree cache, there are some different tradeoffs made and it should be a
better choice for most modern systems.  Convert the Analog Devices
drivers to use the more modern data structure.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
---
Mark Brown (10):
      ASoC: ad1836: Update to use maple tree register cache
      ASoC: ad1980: Update to use maple tree register cache
      ASoC: adau1372: Update to use maple tree register cache
      ASoC: adau1373: Update to use maple tree register cache
      ASoC: adau1701: Update to use maple tree register cache
      ASoC: adau1761: Update to use maple tree register cache
      ASoC: adau1781: Update to use maple tree register cache
      ASoC: adau1977: Update to use maple tree register cache
      ASoC: adau7118: Update to use maple tree register cache
      ASoC: adav80x: Update to use maple tree register cache

 sound/soc/codecs/ad1836.c       | 2 +-
 sound/soc/codecs/ad1980.c       | 2 +-
 sound/soc/codecs/adau1372.c     | 2 +-
 sound/soc/codecs/adau1373.c     | 2 +-
 sound/soc/codecs/adau1701.c     | 2 +-
 sound/soc/codecs/adau1761.c     | 2 +-
 sound/soc/codecs/adau1781.c     | 2 +-
 sound/soc/codecs/adau1977.c     | 2 +-
 sound/soc/codecs/adau7118-i2c.c | 2 +-
 sound/soc/codecs/adav80x.c      | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)
---
base-commit: 06c2afb8
change-id: 20230701-asoc-ad-maple-170068cf0c39

Best regards,
--
Mark Brown <broonie@kernel.org>
parents df43fba7 07e835e3
...@@ -358,7 +358,7 @@ static const struct regmap_config ad1836_regmap_config = { ...@@ -358,7 +358,7 @@ static const struct regmap_config ad1836_regmap_config = {
.max_register = AD1836_ADC_CTRL3, .max_register = AD1836_ADC_CTRL3,
.reg_defaults = ad1836_reg_defaults, .reg_defaults = ad1836_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(ad1836_reg_defaults), .num_reg_defaults = ARRAY_SIZE(ad1836_reg_defaults),
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
}; };
static int ad1836_spi_probe(struct spi_device *spi) static int ad1836_spi_probe(struct spi_device *spi)
......
...@@ -92,7 +92,7 @@ static const struct regmap_config ad1980_regmap_config = { ...@@ -92,7 +92,7 @@ static const struct regmap_config ad1980_regmap_config = {
.reg_stride = 2, .reg_stride = 2,
.val_bits = 16, .val_bits = 16,
.max_register = 0x7e, .max_register = 0x7e,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.volatile_reg = regmap_ac97_default_volatile, .volatile_reg = regmap_ac97_default_volatile,
.readable_reg = ad1980_readable_reg, .readable_reg = ad1980_readable_reg,
......
...@@ -1056,7 +1056,7 @@ const struct regmap_config adau1372_regmap_config = { ...@@ -1056,7 +1056,7 @@ const struct regmap_config adau1372_regmap_config = {
.reg_defaults = adau1372_reg_defaults, .reg_defaults = adau1372_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(adau1372_reg_defaults), .num_reg_defaults = ARRAY_SIZE(adau1372_reg_defaults),
.volatile_reg = adau1372_volatile_register, .volatile_reg = adau1372_volatile_register,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
}; };
EXPORT_SYMBOL_GPL(adau1372_regmap_config); EXPORT_SYMBOL_GPL(adau1372_regmap_config);
......
...@@ -1451,7 +1451,7 @@ static const struct regmap_config adau1373_regmap_config = { ...@@ -1451,7 +1451,7 @@ static const struct regmap_config adau1373_regmap_config = {
.volatile_reg = adau1373_register_volatile, .volatile_reg = adau1373_register_volatile,
.max_register = ADAU1373_SOFT_RESET, .max_register = ADAU1373_SOFT_RESET,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.reg_defaults = adau1373_reg_defaults, .reg_defaults = adau1373_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(adau1373_reg_defaults), .num_reg_defaults = ARRAY_SIZE(adau1373_reg_defaults),
}; };
......
...@@ -778,7 +778,7 @@ static const struct regmap_config adau1701_regmap = { ...@@ -778,7 +778,7 @@ static const struct regmap_config adau1701_regmap = {
.reg_bits = 16, .reg_bits = 16,
.val_bits = 32, .val_bits = 32,
.max_register = ADAU1701_MAX_REGISTER, .max_register = ADAU1701_MAX_REGISTER,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.volatile_reg = adau1701_volatile_reg, .volatile_reg = adau1701_volatile_reg,
.reg_write = adau1701_reg_write, .reg_write = adau1701_reg_write,
.reg_read = adau1701_reg_read, .reg_read = adau1701_reg_read,
......
...@@ -1014,7 +1014,7 @@ const struct regmap_config adau1761_regmap_config = { ...@@ -1014,7 +1014,7 @@ const struct regmap_config adau1761_regmap_config = {
.readable_reg = adau1761_readable_register, .readable_reg = adau1761_readable_register,
.volatile_reg = adau17x1_volatile_register, .volatile_reg = adau17x1_volatile_register,
.precious_reg = adau17x1_precious_register, .precious_reg = adau17x1_precious_register,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
}; };
EXPORT_SYMBOL_GPL(adau1761_regmap_config); EXPORT_SYMBOL_GPL(adau1761_regmap_config);
......
...@@ -472,7 +472,7 @@ const struct regmap_config adau1781_regmap_config = { ...@@ -472,7 +472,7 @@ const struct regmap_config adau1781_regmap_config = {
.readable_reg = adau1781_readable_register, .readable_reg = adau1781_readable_register,
.volatile_reg = adau17x1_volatile_register, .volatile_reg = adau17x1_volatile_register,
.precious_reg = adau17x1_precious_register, .precious_reg = adau17x1_precious_register,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
}; };
EXPORT_SYMBOL_GPL(adau1781_regmap_config); EXPORT_SYMBOL_GPL(adau1781_regmap_config);
......
...@@ -991,7 +991,7 @@ const struct regmap_config adau1977_regmap_config = { ...@@ -991,7 +991,7 @@ const struct regmap_config adau1977_regmap_config = {
.max_register = ADAU1977_REG_DC_HPF_CAL, .max_register = ADAU1977_REG_DC_HPF_CAL,
.volatile_reg = adau1977_register_volatile, .volatile_reg = adau1977_register_volatile,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.reg_defaults = adau1977_reg_defaults, .reg_defaults = adau1977_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(adau1977_reg_defaults), .num_reg_defaults = ARRAY_SIZE(adau1977_reg_defaults),
}; };
......
...@@ -43,7 +43,7 @@ static const struct regmap_config adau7118_regmap_config = { ...@@ -43,7 +43,7 @@ static const struct regmap_config adau7118_regmap_config = {
.val_bits = 8, .val_bits = 8,
.reg_defaults = adau7118_reg_defaults, .reg_defaults = adau7118_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(adau7118_reg_defaults), .num_reg_defaults = ARRAY_SIZE(adau7118_reg_defaults),
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.max_register = ADAU7118_REG_RESET, .max_register = ADAU7118_REG_RESET,
.volatile_reg = adau7118_volatile, .volatile_reg = adau7118_volatile,
}; };
......
...@@ -870,7 +870,7 @@ const struct regmap_config adav80x_regmap_config = { ...@@ -870,7 +870,7 @@ const struct regmap_config adav80x_regmap_config = {
.max_register = ADAV80X_PLL_OUTE, .max_register = ADAV80X_PLL_OUTE,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.reg_defaults = adav80x_reg_defaults, .reg_defaults = adav80x_reg_defaults,
.num_reg_defaults = ARRAY_SIZE(adav80x_reg_defaults), .num_reg_defaults = ARRAY_SIZE(adav80x_reg_defaults),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment