ASoC: codec: wm8960: Refactor sysclk freq search
authorDaniel Baluta <daniel.baluta@nxp.com>
Tue, 21 Mar 2017 15:03:24 +0000 (17:03 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 24 Mar 2017 18:53:04 +0000 (18:53 +0000)
commit3ddc97211cbb61a5f59882c26f8e3158c86e34bb
tree8466a8ffcbddff2d0e79f3c2f392846c315fe3be
parenta5de5b74a50113564a1e0850e2da96c37c35e55d
ASoC: codec: wm8960: Refactor sysclk freq search

Add a separate function for finding (sysclk, lrclk, bclk)
when the clock is auto or mclk. This makes code easier to
read and reduces the indentation level in wm8960_configure_clocking.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8960.c