Prechádzať zdrojové kódy

asoc: codecs: Fix lpass_cdc_dmic_clk_div arg type

Update mode argument type from int to u32 to avoid
any potential data loss since input is also u32 type.

Change-Id: I9541a7da20d2a22a0066622736268adffde5adbf
Signed-off-by: Matthew Rice <[email protected]>
Matthew Rice 3 rokov pred
rodič
commit
5be0a8ab7d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      asoc/codecs/lpass-cdc/lpass-cdc.c

+ 1 - 1
asoc/codecs/lpass-cdc/lpass-cdc.c

@@ -464,7 +464,7 @@ void lpass_cdc_unregister_res_clk(struct device *dev)
 EXPORT_SYMBOL(lpass_cdc_unregister_res_clk);
 
 static u8 lpass_cdc_dmic_clk_div_get(struct snd_soc_component *component,
-				   int mode)
+				   u32 mode)
 {
 	struct lpass_cdc_priv* priv = snd_soc_component_get_drvdata(component);
 	int macro = (mode ? VA_MACRO : TX_MACRO);