Quellcode durchsuchen

ASoC: da7219: make structure da7219_dai_clks_ops static

structure da7219_dai_clks_ops is local to the source and does not need
to be in global scope, so make it static.

Cleans up sparse warning:
sound/soc/codecs/da7219.c:1777:22: warning: symbol 'da7219_dai_clks_ops'
was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Colin Ian King vor 7 Jahren
Ursprung
Commit
1d37ce929c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      sound/soc/codecs/da7219.c

+ 1 - 1
sound/soc/codecs/da7219.c

@@ -1774,7 +1774,7 @@ static int da7219_dai_clks_is_prepared(struct clk_hw *hw)
 	return !!(clk_reg & DA7219_DAI_CLK_EN_MASK);
 	return !!(clk_reg & DA7219_DAI_CLK_EN_MASK);
 }
 }
 
 
-const struct clk_ops da7219_dai_clks_ops = {
+static const struct clk_ops da7219_dai_clks_ops = {
 	.prepare = da7219_dai_clks_prepare,
 	.prepare = da7219_dai_clks_prepare,
 	.unprepare = da7219_dai_clks_unprepare,
 	.unprepare = da7219_dai_clks_unprepare,
 	.is_prepared = da7219_dai_clks_is_prepared,
 	.is_prepared = da7219_dai_clks_is_prepared,