aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire/bebob
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-05-27 11:14:45 -0400
committerTakashi Iwai <tiwai@suse.de>2014-05-27 11:36:01 -0400
commit9fb01cdb38e0a72f40befdeba68ce7022468b7c8 (patch)
tree7d5372ed90939f4479d749079337432e41a7dd3c /sound/firewire/bebob
parent791c67b427dfebfd930228ce33a42e70d6d7a7d3 (diff)
ALSA: bebob: Add static specifier to identifier with file scope
Some variables were declared without static even if they're not referred to from external files. This commit make them local symbols for better information-hiding by file unit. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/bebob')
-rw-r--r--sound/firewire/bebob/bebob.c2
-rw-r--r--sound/firewire/bebob/bebob_focusrite.c4
-rw-r--r--sound/firewire/bebob/bebob_terratec.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c
index b5e8f99c15a5..0e9d625128cf 100644
--- a/sound/firewire/bebob/bebob.c
+++ b/sound/firewire/bebob/bebob.c
@@ -313,7 +313,7 @@ static void bebob_remove(struct fw_unit *unit)
313 snd_card_free_when_closed(bebob->card); 313 snd_card_free_when_closed(bebob->card);
314} 314}
315 315
316struct snd_bebob_rate_spec normal_rate_spec = { 316static struct snd_bebob_rate_spec normal_rate_spec = {
317 .get = &snd_bebob_stream_get_rate, 317 .get = &snd_bebob_stream_get_rate,
318 .set = &snd_bebob_stream_set_rate 318 .set = &snd_bebob_stream_set_rate
319}; 319};
diff --git a/sound/firewire/bebob/bebob_focusrite.c b/sound/firewire/bebob/bebob_focusrite.c
index e71066d6f7cb..45a0eed6d5b1 100644
--- a/sound/firewire/bebob/bebob_focusrite.c
+++ b/sound/firewire/bebob/bebob_focusrite.c
@@ -256,7 +256,7 @@ static struct snd_bebob_clock_spec saffire_both_clk_spec = {
256 .get = &saffire_both_clk_src_get, 256 .get = &saffire_both_clk_src_get,
257}; 257};
258/* Saffire LE */ 258/* Saffire LE */
259struct snd_bebob_meter_spec saffire_le_meter_spec = { 259static struct snd_bebob_meter_spec saffire_le_meter_spec = {
260 .num = ARRAY_SIZE(saffire_le_meter_labels), 260 .num = ARRAY_SIZE(saffire_le_meter_labels),
261 .labels = saffire_le_meter_labels, 261 .labels = saffire_le_meter_labels,
262 .get = &saffire_meter_get, 262 .get = &saffire_meter_get,
@@ -267,7 +267,7 @@ struct snd_bebob_spec saffire_le_spec = {
267 .meter = &saffire_le_meter_spec 267 .meter = &saffire_le_meter_spec
268}; 268};
269/* Saffire */ 269/* Saffire */
270struct snd_bebob_meter_spec saffire_meter_spec = { 270static struct snd_bebob_meter_spec saffire_meter_spec = {
271 .num = ARRAY_SIZE(saffire_meter_labels), 271 .num = ARRAY_SIZE(saffire_meter_labels),
272 .labels = saffire_meter_labels, 272 .labels = saffire_meter_labels,
273 .get = &saffire_meter_get, 273 .get = &saffire_meter_get,
diff --git a/sound/firewire/bebob/bebob_terratec.c b/sound/firewire/bebob/bebob_terratec.c
index 2a89c1cd9b15..eef8ea7d9b97 100644
--- a/sound/firewire/bebob/bebob_terratec.c
+++ b/sound/firewire/bebob/bebob_terratec.c
@@ -38,13 +38,13 @@ phase24_series_clk_src_get(struct snd_bebob *bebob, unsigned int *id)
38 return avc_audio_get_selector(bebob->unit, 0, 4, id); 38 return avc_audio_get_selector(bebob->unit, 0, 4, id);
39} 39}
40 40
41struct snd_bebob_rate_spec phase_series_rate_spec = { 41static struct snd_bebob_rate_spec phase_series_rate_spec = {
42 .get = &snd_bebob_stream_get_rate, 42 .get = &snd_bebob_stream_get_rate,
43 .set = &snd_bebob_stream_set_rate, 43 .set = &snd_bebob_stream_set_rate,
44}; 44};
45 45
46/* PHASE 88 Rack FW */ 46/* PHASE 88 Rack FW */
47struct snd_bebob_clock_spec phase88_rack_clk = { 47static struct snd_bebob_clock_spec phase88_rack_clk = {
48 .num = ARRAY_SIZE(phase88_rack_clk_src_labels), 48 .num = ARRAY_SIZE(phase88_rack_clk_src_labels),
49 .labels = phase88_rack_clk_src_labels, 49 .labels = phase88_rack_clk_src_labels,
50 .get = &phase88_rack_clk_src_get, 50 .get = &phase88_rack_clk_src_get,
@@ -56,7 +56,7 @@ struct snd_bebob_spec phase88_rack_spec = {
56}; 56};
57 57
58/* 'PHASE 24 FW' and 'PHASE X24 FW' */ 58/* 'PHASE 24 FW' and 'PHASE X24 FW' */
59struct snd_bebob_clock_spec phase24_series_clk = { 59static struct snd_bebob_clock_spec phase24_series_clk = {
60 .num = ARRAY_SIZE(phase24_series_clk_src_labels), 60 .num = ARRAY_SIZE(phase24_series_clk_src_labels),
61 .labels = phase24_series_clk_src_labels, 61 .labels = phase24_series_clk_src_labels,
62 .get = &phase24_series_clk_src_get, 62 .get = &phase24_series_clk_src_get,