4 Feb
2015
4 Feb
'15
9:31 p.m.
On Tue, Feb 03, 2015 at 12:03:47PM -0800, yang.a.fang@intel.com wrote:
From: "Fang, Yang A" yang.a.fang@intel.com
This patch defines an API to select the clock source for specified filters.
This doesn't apply against current code, looks like a conflict with the rt5650 support patch. Please check and resend.
- if ((clk_src != RT5645_CLK_SEL_SYS) &&
(clk_src != RT5645_CLK_SEL_I2S1_ASRC) &&
(clk_src != RT5645_CLK_SEL_I2S2_ASRC) &&
(clk_src != RT5645_CLK_SEL_SYS2))
return -EINVAL;
That return statement is indented a bit far (it should just be a tab, it's not really anything to do with the constants so shouldn't be lined up with them). The whole thing would be better written as a switch statement (return -EINVAL in the default case and break on a known source).