]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs35l41: Update handling of test key registers
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 7 Jan 2022 16:06:35 +0000 (16:06 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 7 Jan 2022 17:14:26 +0000 (17:14 +0000)
commit53e42cdc56b0d8b382c5318aa0227e9624864598
tree65990c397c83a81b48a78052eb89b7856d515c70
parentaaf50765dfb972e23c2f91727e8b7da08032b9c9
ASoC: cs35l41: Update handling of test key registers

In preparation for the addition of PM runtime support move the test
key out of the register patches themselves. This is necessary to
allow the test key to be held during cache synchronisation, which is
required by the OTP settings which were unpacked from the device and
written by the driver.

Also whilst at it, the driver uses a mixture of accessing the test key
register by name and by address, consistently use the name.

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