asoc: codecs: Update clk_div_get returned type

Cast returned u16 value to int in VA/TX macro: clk_div_get
to avoid possible data type warnings seen in function
caller.

Change-Id: I08943a26294ce54a207b739867292c01d090623e
Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
此提交包含在:
Matthew Rice
2022-04-05 15:06:54 -07:00
提交者 Gerrit - the friendly Code Review server
父節點 99585c50e4
當前提交 dfab7cf682
共有 2 個檔案被更改,包括 2 行新增2 行删除

查看文件

@@ -1833,7 +1833,7 @@ static int lpass_cdc_tx_macro_clk_div_get(struct snd_soc_component *component)
if (!lpass_cdc_tx_macro_get_data(component, &tx_dev, &tx_priv, __func__))
return -EINVAL;
return tx_priv->dmic_clk_div;
return (int)tx_priv->dmic_clk_div;
}
static int lpass_cdc_tx_macro_validate_dmic_sample_rate(u32 dmic_sample_rate,