diff options
author | Alexander Sverdlin <alexander.sverdlin@gmail.com> | 2023-04-11 00:39:01 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-11 13:37:16 +0200 |
commit | 2e9688c81cfc48b210af6f313cb04589b7943e86 (patch) | |
tree | 825c14c21c1b0378964da5ccd69e646b510b39c1 /sound/soc/codecs/cs4271.c | |
parent | ASoC: ep93xx: i2s: move enable call to startup callback (diff) | |
download | linux-2e9688c81cfc48b210af6f313cb04589b7943e86.tar.xz linux-2e9688c81cfc48b210af6f313cb04589b7943e86.zip |
ASoC: cs4271: flat regcache, trivial simplifications
- Switch to REGCACHE_FLAT, the whole overhead of RBTREE is not worth it
with non sparse register set in the address range 1..7.
- Move register width to central location
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20230410223902.2321834-3-alexander.sverdlin@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4271.c')
-rw-r--r-- | sound/soc/codecs/cs4271.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index 2021cf442606..188b8b43c524 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c @@ -689,8 +689,8 @@ const struct regmap_config cs4271_regmap_config = { .reg_defaults = cs4271_reg_defaults, .num_reg_defaults = ARRAY_SIZE(cs4271_reg_defaults), - .cache_type = REGCACHE_RBTREE, - + .cache_type = REGCACHE_FLAT, + .val_bits = 8, .volatile_reg = cs4271_volatile_reg, }; EXPORT_SYMBOL_GPL(cs4271_regmap_config); |