diff mbox

[2/6] ASoC: odrodix2_max98090: Make non exported symbols static

Message ID 1408285102-24538-3-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit d80a12f92466d0bc4fd244c9052a8a88518c868e
Headers show

Commit Message

Lars-Peter Clausen Aug. 17, 2014, 2:18 p.m. UTC
odroidx2_drvdata and odroidu3_drvdata are not used outside this module so make
them static (and also const while we are at it).

Fixes the following warnings from sparse:
    sound/soc/samsung/odroidx2_max98090.c:69:26: warning: symbol
     'odroidx2_drvdata' was not declared. Should it be static?
    sound/soc/samsung/odroidx2_max98090.c:74:26: warning: symbol
     'odroidu3_drvdata' was not declared. Should it be static?

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/samsung/odroidx2_max98090.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Aug. 17, 2014, 2:32 p.m. UTC | #1
On Sun, Aug 17, 2014 at 04:18:18PM +0200, Lars-Peter Clausen wrote:
> odroidx2_drvdata and odroidu3_drvdata are not used outside this module so make
> them static (and also const while we are at it).

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c
index 278edf9..3c8f604 100644
--- a/sound/soc/samsung/odroidx2_max98090.c
+++ b/sound/soc/samsung/odroidx2_max98090.c
@@ -66,12 +66,12 @@  static struct snd_soc_card odroidx2 = {
 	.late_probe		= odroidx2_late_probe,
 };
 
-struct odroidx2_drv_data odroidx2_drvdata = {
+static const struct odroidx2_drv_data odroidx2_drvdata = {
 	.dapm_widgets		= odroidx2_dapm_widgets,
 	.num_dapm_widgets	= ARRAY_SIZE(odroidx2_dapm_widgets),
 };
 
-struct odroidx2_drv_data odroidu3_drvdata = {
+static const struct odroidx2_drv_data odroidu3_drvdata = {
 	.dapm_widgets		= odroidu3_dapm_widgets,
 	.num_dapm_widgets	= ARRAY_SIZE(odroidu3_dapm_widgets),
 };