[10/12] bebob: Add static specifier to identifier with file scope
diff mbox

Message ID 1401203687-4189-11-git-send-email-o-takashi@sakamocchi.jp
State Accepted
Commit 9fb01cdb38e0a72f40befdeba68ce7022468b7c8
Delegated to: Takashi Iwai
Headers show

Commit Message

Takashi Sakamoto May 27, 2014, 3:14 p.m. UTC
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>
---
 sound/firewire/bebob/bebob.c           | 2 +-
 sound/firewire/bebob/bebob_focusrite.c | 4 ++--
 sound/firewire/bebob/bebob_terratec.c  | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

Patch
diff mbox

diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c
index b5e8f99..0e9d625 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)
 	snd_card_free_when_closed(bebob->card);
 }
 
-struct snd_bebob_rate_spec normal_rate_spec = {
+static struct snd_bebob_rate_spec normal_rate_spec = {
 	.get	= &snd_bebob_stream_get_rate,
 	.set	= &snd_bebob_stream_set_rate
 };
diff --git a/sound/firewire/bebob/bebob_focusrite.c b/sound/firewire/bebob/bebob_focusrite.c
index e71066d..45a0eed 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 = {
 	.get	= &saffire_both_clk_src_get,
 };
 /* Saffire LE */
-struct snd_bebob_meter_spec saffire_le_meter_spec = {
+static struct snd_bebob_meter_spec saffire_le_meter_spec = {
 	.num	= ARRAY_SIZE(saffire_le_meter_labels),
 	.labels	= saffire_le_meter_labels,
 	.get	= &saffire_meter_get,
@@ -267,7 +267,7 @@  struct snd_bebob_spec saffire_le_spec = {
 	.meter	= &saffire_le_meter_spec
 };
 /* Saffire */
-struct snd_bebob_meter_spec saffire_meter_spec = {
+static struct snd_bebob_meter_spec saffire_meter_spec = {
 	.num	= ARRAY_SIZE(saffire_meter_labels),
 	.labels	= saffire_meter_labels,
 	.get	= &saffire_meter_get,
diff --git a/sound/firewire/bebob/bebob_terratec.c b/sound/firewire/bebob/bebob_terratec.c
index 2a89c1c..eef8ea7 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)
 	return avc_audio_get_selector(bebob->unit, 0, 4, id);
 }
 
-struct snd_bebob_rate_spec phase_series_rate_spec = {
+static struct snd_bebob_rate_spec phase_series_rate_spec = {
 	.get	= &snd_bebob_stream_get_rate,
 	.set	= &snd_bebob_stream_set_rate,
 };
 
 /* PHASE 88 Rack FW */
-struct snd_bebob_clock_spec phase88_rack_clk = {
+static struct snd_bebob_clock_spec phase88_rack_clk = {
 	.num	= ARRAY_SIZE(phase88_rack_clk_src_labels),
 	.labels	= phase88_rack_clk_src_labels,
 	.get	= &phase88_rack_clk_src_get,
@@ -56,7 +56,7 @@  struct snd_bebob_spec phase88_rack_spec = {
 };
 
 /* 'PHASE 24 FW' and 'PHASE X24 FW' */
-struct snd_bebob_clock_spec phase24_series_clk = {
+static struct snd_bebob_clock_spec phase24_series_clk = {
 	.num	= ARRAY_SIZE(phase24_series_clk_src_labels),
 	.labels	= phase24_series_clk_src_labels,
 	.get	= &phase24_series_clk_src_get,