ASoC: davinci-mcasp: Restructure the davinci_mcasp_calc_clk_div()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 9 May 2016 10:42:31 +0000 (13:42 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 9 May 2016 15:55:16 +0000 (16:55 +0100)
commit3e9bee11d83190b852d428b3e35a942c6e2293cd
treefe1d2e537da6d10ce82afd4b6865f3f2ba376711
parent226e73e23b6b7f7d6df47562a7555ddb121163cf
ASoC: davinci-mcasp: Restructure the davinci_mcasp_calc_clk_div()

Change the return value to error_pmm instead of the BCLK div and handle the
divider configuration to McASP within the function when the set flag is
true.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c