ALSA: hda - Make snd_hda_jack_tbl_new() static
authorTakashi Iwai <tiwai@suse.de>
Thu, 11 Sep 2014 12:22:03 +0000 (14:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 11 Sep 2014 12:22:03 +0000 (14:22 +0200)
It's called only in hda_jack.c, so make it local.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h

index 9c8f24f2d56bb4bdc84f70dd29fe592494afcca6..7f332794993fa3396fbc490bc19ae9b0ac5f592f 100644 (file)
@@ -94,7 +94,7 @@ EXPORT_SYMBOL_GPL(snd_hda_jack_tbl_get_from_tag);
 /**
  * snd_hda_jack_tbl_new - create a jack-table entry for the given NID
  */
-struct hda_jack_tbl *
+static struct hda_jack_tbl *
 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid)
 {
        struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid);
@@ -108,7 +108,6 @@ snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid)
        jack->tag = codec->jacktbl.used;
        return jack;
 }
-EXPORT_SYMBOL_GPL(snd_hda_jack_tbl_new);
 
 void snd_hda_jack_tbl_clear(struct hda_codec *codec)
 {
index c1abc7324d680a07f8cd76fef406f205ae29973e..67f42db9c89c4cd7e5680ca204598b71a4337a05 100644 (file)
@@ -42,8 +42,6 @@ snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid);
 struct hda_jack_tbl *
 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag);
 
-struct hda_jack_tbl *
-snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid);
 void snd_hda_jack_tbl_clear(struct hda_codec *codec);
 
 void snd_hda_jack_set_dirty_all(struct hda_codec *codec);