mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
ASoC: Convert Realtek I2C drivers to use maple tree
Merge series from Mark Brown <broonie@kernel.org>: Many of the Realtek I2C/SPI devices only support single register read and write operations so don't benefit from using the rbtree cache instead of the more modern maple tree cache, convert them to maple tree.
This commit is contained in:
commit
246c9f586c
@ -2184,7 +2184,7 @@ static const struct regmap_config rt1011_regmap = {
|
||||
.max_register = RT1011_MAX_REG + 1,
|
||||
.volatile_reg = rt1011_volatile_register,
|
||||
.readable_reg = rt1011_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt1011_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt1011_reg),
|
||||
.use_single_read = true,
|
||||
|
@ -535,7 +535,7 @@ static const struct regmap_config rt1019_regmap = {
|
||||
.max_register = RT1019_BEEP_2,
|
||||
.volatile_reg = rt1019_volatile_register,
|
||||
.readable_reg = rt1019_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt1019_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt1019_reg),
|
||||
};
|
||||
|
@ -955,7 +955,7 @@ static const struct regmap_config rt1305_regmap = {
|
||||
RT1305_PR_SPACING),
|
||||
.volatile_reg = rt1305_volatile_register,
|
||||
.readable_reg = rt1305_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt1305_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt1305_reg),
|
||||
.ranges = rt1305_ranges,
|
||||
|
@ -773,7 +773,7 @@ static const struct regmap_config rt1308_regmap = {
|
||||
.max_register = RT1308_MAX_REG,
|
||||
.volatile_reg = rt1308_volatile_register,
|
||||
.readable_reg = rt1308_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt1308_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt1308_reg),
|
||||
.use_single_read = true,
|
||||
|
@ -1195,7 +1195,7 @@ static const struct regmap_config rt5514_regmap = {
|
||||
.reg_read = rt5514_i2c_read,
|
||||
.reg_write = rt5514_i2c_write,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5514_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5514_reg),
|
||||
.use_single_read = true,
|
||||
|
@ -1315,7 +1315,7 @@ static const struct regmap_config rt5616_regmap = {
|
||||
RT5616_PR_SPACING),
|
||||
.volatile_reg = rt5616_volatile_register,
|
||||
.readable_reg = rt5616_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5616_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5616_reg),
|
||||
.ranges = rt5616_ranges,
|
||||
|
@ -1693,7 +1693,7 @@ static const struct regmap_config rt5631_regmap_config = {
|
||||
.max_register = RT5631_VENDOR_ID2,
|
||||
.reg_defaults = rt5631_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5631_reg),
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.use_single_read = true,
|
||||
.use_single_write = true,
|
||||
};
|
||||
|
@ -2949,7 +2949,7 @@ static const struct regmap_config rt5640_regmap = {
|
||||
.volatile_reg = rt5640_volatile_register,
|
||||
.readable_reg = rt5640_readable_register,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5640_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5640_reg),
|
||||
.ranges = rt5640_ranges,
|
||||
|
@ -3546,7 +3546,7 @@ static const struct regmap_config rt5645_regmap = {
|
||||
.volatile_reg = rt5645_volatile_register,
|
||||
.readable_reg = rt5645_readable_register,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5645_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5645_reg),
|
||||
.ranges = rt5645_ranges,
|
||||
@ -3563,7 +3563,7 @@ static const struct regmap_config rt5650_regmap = {
|
||||
.volatile_reg = rt5645_volatile_register,
|
||||
.readable_reg = rt5645_readable_register,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5650_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5650_reg),
|
||||
.ranges = rt5645_ranges,
|
||||
|
@ -2172,7 +2172,7 @@ static const struct regmap_config rt5651_regmap = {
|
||||
.volatile_reg = rt5651_volatile_register,
|
||||
.readable_reg = rt5651_readable_register,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5651_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5651_reg),
|
||||
.ranges = rt5651_ranges,
|
||||
|
@ -1221,7 +1221,7 @@ static const struct regmap_config rt5660_regmap = {
|
||||
.volatile_reg = rt5660_volatile_register,
|
||||
.readable_reg = rt5660_readable_register,
|
||||
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5660_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5660_reg),
|
||||
.ranges = rt5660_ranges,
|
||||
|
@ -3268,7 +3268,7 @@ static const struct regmap_config rt5663_v2_regmap = {
|
||||
.max_register = 0x07fa,
|
||||
.volatile_reg = rt5663_v2_volatile_register,
|
||||
.readable_reg = rt5663_v2_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5663_v2_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5663_v2_reg),
|
||||
};
|
||||
@ -3281,7 +3281,7 @@ static const struct regmap_config rt5663_regmap = {
|
||||
.max_register = 0x03f3,
|
||||
.volatile_reg = rt5663_volatile_register,
|
||||
.readable_reg = rt5663_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5663_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5663_reg),
|
||||
};
|
||||
|
@ -4626,7 +4626,7 @@ static const struct regmap_config rt5665_regmap = {
|
||||
.max_register = 0x0400,
|
||||
.volatile_reg = rt5665_volatile_register,
|
||||
.readable_reg = rt5665_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5665_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5665_reg),
|
||||
.use_single_read = true,
|
||||
|
@ -2370,7 +2370,7 @@ static const struct regmap_config rt5668_regmap = {
|
||||
.max_register = RT5668_I2C_MODE,
|
||||
.volatile_reg = rt5668_volatile_register,
|
||||
.readable_reg = rt5668_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5668_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5668_reg),
|
||||
.use_single_read = true,
|
||||
|
@ -2863,7 +2863,7 @@ static const struct regmap_config rt5670_regmap = {
|
||||
RT5670_PR_SPACING),
|
||||
.volatile_reg = rt5670_volatile_register,
|
||||
.readable_reg = rt5670_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5670_reg,
|
||||
.num_reg_defaults = ARRAY_SIZE(rt5670_reg),
|
||||
.ranges = rt5670_ranges,
|
||||
|
@ -46,7 +46,7 @@ static const struct regmap_config rt5682_regmap = {
|
||||
.max_register = RT5682_I2C_MODE,
|
||||
.volatile_reg = rt5682_volatile_register,
|
||||
.readable_reg = rt5682_readable_register,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.reg_defaults = rt5682_reg,
|
||||
.num_reg_defaults = RT5682_REG_NUM,
|
||||
.use_single_read = true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user