]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: cs35l34: Simplify the logic to set CS35L34_MCLK_CTL setting
authorAxel Lin <axel.lin@ingics.com>
Sat, 3 Dec 2016 07:10:50 +0000 (15:10 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 6 Dec 2016 12:22:28 +0000 (12:22 +0000)
commit914657c2be09fb89a50c7841e98186301c93767e
tree7702fbf158bb00b90889a14191fac414a6b017c2
parent55060feefcdff692ace47b1a2346998dfcd4bcb5
ASoC: cs35l34: Simplify the logic to set CS35L34_MCLK_CTL setting

The logic of "value = ~CS35L34_MCLK_DIV & CS35L34_MCLK_RATE_XXXXXX;" is
unnecessary complex. By setting CS35L34_MCLK_DIV | CS35L34_MCLK_RATE_MASK
as the mask for regmap_update_bits() call, what the code does is exactly
the same as setting value = CS35L34_MCLK_RATE_XXXXXX.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l34.c