ASoC: cs42l42: Remove redundant writes to DETECT_MODE
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 16 Nov 2021 16:38:58 +0000 (16:38 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 17 Nov 2021 13:04:43 +0000 (13:04 +0000)
commit976001b10fa4441917f216452e70fd8c5aeccd94
tree6a298e53aa6508a243598db9fe59e3e0dfe97278
parent7548a391c53cab2af0954d252cc5a9a793fd4c0e
ASoC: cs42l42: Remove redundant writes to DETECT_MODE

There are multiple places where DETECT_MODE is included in a register
write, but in every case it is written as 0. Removing these redundant
writes makes the code less cluttered and also makes it obvious that
DETECT_MODE is never changed.

A single initialization to 0 is added to cs42l42_setup_hs_type_detect().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211116163901.45390-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c