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)
commitd92321bbe46b0ecae0941461379d39599610d869
tree65990c397c83a81b48a78052eb89b7856d515c70
parentf6fdf773daa399e688de70098ef4feaa5ea8e67c
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