ASoC: rt5682: Make rt5682_clock_config static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 28 Feb 2020 07:56:09 +0000 (15:56 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 28 Feb 2020 17:28:28 +0000 (17:28 +0000)
Fix sparse warning:

sound/soc/codecs/rt5682-sdw.c:163:5: warning:
 symbol 'rt5682_clock_config' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200228075609.38236-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682-sdw.c

index fc31d04b5203c2819735bc4b4f748a7bc5bdb136..1d6963dd6403aa5a221b6ba86b7883c90f7a809b 100644 (file)
@@ -160,7 +160,7 @@ static int rt5682_read_prop(struct sdw_slave *slave)
 #define RT5682_CLK_FREQ_2400000HZ 2400000
 #define RT5682_CLK_FREQ_12288000HZ 12288000
 
-int rt5682_clock_config(struct device *dev)
+static int rt5682_clock_config(struct device *dev)
 {
        struct rt5682_priv *rt5682 = dev_get_drvdata(dev);
        unsigned int clk_freq, value;