ASoC: cs35l41: Combine adjacent register writes
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 14 Sep 2021 14:13:46 +0000 (15:13 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 15 Sep 2021 12:12:32 +0000 (13:12 +0100)
commitfe1024d50477becf35128f3ef03bf3525a2cd140
tree51010aaf6c9d6abb7339a94d423a778f29c57739
parent3a2eb0b4b02060340af10a1db3c452472471be2f
ASoC: cs35l41: Combine adjacent register writes

cs35l41 is often connected over I2C which is a very slow bus, as such
timings can be greatly improved combining writes where acceptable.
Update several points where the driver does multiple register writes
when a single one would suffice.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210914141349.30218-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l41.c
sound/soc/codecs/cs35l41.h