aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/cs4271-i2c.c
diff options
context:
space:
mode:
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>2023-04-11 00:39:01 +0200
committerMark Brown <broonie@kernel.org>2023-04-11 12:37:16 +0100
commit2e9688c81cfc48b210af6f313cb04589b7943e86 (patch)
tree825c14c21c1b0378964da5ccd69e646b510b39c1 /sound/soc/codecs/cs4271-i2c.c
parentASoC: ep93xx: i2s: move enable call to startup callback (diff)
downloadwireguard-linux-2e9688c81cfc48b210af6f313cb04589b7943e86.tar.xz
wireguard-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-i2c.c')
-rw-r--r--sound/soc/codecs/cs4271-i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4271-i2c.c b/sound/soc/codecs/cs4271-i2c.c
index 0e8a7cf0da50..4033be1c3bc1 100644
--- a/sound/soc/codecs/cs4271-i2c.c
+++ b/sound/soc/codecs/cs4271-i2c.c
@@ -17,7 +17,6 @@ static int cs4271_i2c_probe(struct i2c_client *client)
config = cs4271_regmap_config;
config.reg_bits = 8;
- config.val_bits = 8;
return cs4271_probe(&client->dev,
devm_regmap_init_i2c(client, &config));