]> 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)
commit05d617cad942df66c7f37d41a9987cb5ddbee5de
tree65990c397c83a81b48a78052eb89b7856d515c70
parent8cfe78e9e01c334e76a02ec4ddf1c4a7f3642455
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