diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-08-11 02:38:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-11 10:02:28 -0400 |
commit | 22e766146a5ae744b0e95d80f663a9aab9c189fb (patch) | |
tree | b49328188c4746282536054e77e03254c8fe2f92 | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
ASoC: mediatek: mark symbols static where possible
We get 2 warnings about global functions without a declaration
in the ASoC mediatek module when building with W=1:
sound/soc/mediatek/common/mtk-afe-fe-dai.c:26:5: warning: no previous prototype for 'mtk_regmap_update_bits' [-Wmissing-prototypes]
int mtk_regmap_update_bits(struct regmap *map, int reg, unsigned int mask,
^
sound/soc/mediatek/common/mtk-afe-fe-dai.c:34:5: warning: no previous prototype for 'mtk_regmap_write' [-Wmissing-prototypes]
int mtk_regmap_write(struct regmap *map, int reg, unsigned int val)
In fact, all of those functions are only used in the file in which
they are declared and don't need a declaration, but can be made static.
so this patch marks it 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/mediatek/common/mtk-afe-fe-dai.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/mediatek/common/mtk-afe-fe-dai.c b/sound/soc/mediatek/common/mtk-afe-fe-dai.c index b788791b0a35..ac231d33d8fe 100644 --- a/sound/soc/mediatek/common/mtk-afe-fe-dai.c +++ b/sound/soc/mediatek/common/mtk-afe-fe-dai.c | |||
@@ -23,7 +23,8 @@ | |||
23 | 23 | ||
24 | #define AFE_BASE_END_OFFSET 8 | 24 | #define AFE_BASE_END_OFFSET 8 |
25 | 25 | ||
26 | int mtk_regmap_update_bits(struct regmap *map, int reg, unsigned int mask, | 26 | static int mtk_regmap_update_bits(struct regmap *map, int reg, |
27 | unsigned int mask, | ||
27 | unsigned int val) | 28 | unsigned int val) |
28 | { | 29 | { |
29 | if (reg < 0) | 30 | if (reg < 0) |
@@ -31,7 +32,7 @@ int mtk_regmap_update_bits(struct regmap *map, int reg, unsigned int mask, | |||
31 | return regmap_update_bits(map, reg, mask, val); | 32 | return regmap_update_bits(map, reg, mask, val); |
32 | } | 33 | } |
33 | 34 | ||
34 | int mtk_regmap_write(struct regmap *map, int reg, unsigned int val) | 35 | static int mtk_regmap_write(struct regmap *map, int reg, unsigned int val) |
35 | { | 36 | { |
36 | if (reg < 0) | 37 | if (reg < 0) |
37 | return 0; | 38 | return 0; |