diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-09-11 08:22:03 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-11 08:22:03 -0400 |
commit | 81965f1f58ce120a616f2fdd0594916fa183c5fc (patch) | |
tree | d08cec0c0f7548616b3c88eee9e550e24e36bff3 | |
parent | 62f949bf6bf6ceb44872c44ef3913a96d93fb5d4 (diff) |
ALSA: hda - Make snd_hda_jack_tbl_new() static
It's called only in hda_jack.c, so make it local.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/hda_jack.c | 3 | ||||
-rw-r--r-- | sound/pci/hda/hda_jack.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_jack.c b/sound/pci/hda/hda_jack.c index 9c8f24f2d56b..7f332794993f 100644 --- a/sound/pci/hda/hda_jack.c +++ b/sound/pci/hda/hda_jack.c | |||
@@ -94,7 +94,7 @@ EXPORT_SYMBOL_GPL(snd_hda_jack_tbl_get_from_tag); | |||
94 | /** | 94 | /** |
95 | * snd_hda_jack_tbl_new - create a jack-table entry for the given NID | 95 | * snd_hda_jack_tbl_new - create a jack-table entry for the given NID |
96 | */ | 96 | */ |
97 | struct hda_jack_tbl * | 97 | static struct hda_jack_tbl * |
98 | snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) | 98 | snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) |
99 | { | 99 | { |
100 | struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid); | 100 | 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) | |||
108 | jack->tag = codec->jacktbl.used; | 108 | jack->tag = codec->jacktbl.used; |
109 | return jack; | 109 | return jack; |
110 | } | 110 | } |
111 | EXPORT_SYMBOL_GPL(snd_hda_jack_tbl_new); | ||
112 | 111 | ||
113 | void snd_hda_jack_tbl_clear(struct hda_codec *codec) | 112 | void snd_hda_jack_tbl_clear(struct hda_codec *codec) |
114 | { | 113 | { |
diff --git a/sound/pci/hda/hda_jack.h b/sound/pci/hda/hda_jack.h index c1abc7324d68..67f42db9c89c 100644 --- a/sound/pci/hda/hda_jack.h +++ b/sound/pci/hda/hda_jack.h | |||
@@ -42,8 +42,6 @@ snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid); | |||
42 | struct hda_jack_tbl * | 42 | struct hda_jack_tbl * |
43 | snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag); | 43 | snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag); |
44 | 44 | ||
45 | struct hda_jack_tbl * | ||
46 | snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid); | ||
47 | void snd_hda_jack_tbl_clear(struct hda_codec *codec); | 45 | void snd_hda_jack_tbl_clear(struct hda_codec *codec); |
48 | 46 | ||
49 | void snd_hda_jack_set_dirty_all(struct hda_codec *codec); | 47 | void snd_hda_jack_set_dirty_all(struct hda_codec *codec); |