]> git.hungrycats.org Git - linux/commitdiff
[PATCH] namespace pollution in opti92x driver
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Jan 2003 12:14:28 +0000 (04:14 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 13 Jan 2003 12:14:28 +0000 (04:14 -0800)
From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>

  The opti92x driver has global variables named 'rates' and 'bits'
  that pollute the namespace. This makes them static.

sound/isa/opti9xx/opti92x-ad1848.c

index b1d48c8eb882c9369fc9e04a65496c903cc62abb..f82c65805fc973b1c7f096b13079fc71bd3891f3 100644 (file)
@@ -825,8 +825,9 @@ static unsigned int snd_opti93x_get_count(unsigned char format,
        return (format & OPTi93X_STEREO) ? (size >> 1) : size;
 }
 
-unsigned int rates[] = {  5512,  6615,  8000,  9600, 11025, 16000, 18900,
-                        22050, 27428, 32000, 33075, 37800, 44100, 48000 };
+static unsigned int rates[] = {  5512,  6615,  8000,  9600, 11025, 16000, 
+                               18900, 22050, 27428, 32000, 33075, 37800,
+                               44100, 48000 };
 #define RATES sizeof(rates) / sizeof(rates[0])
 
 static snd_pcm_hw_constraint_list_t hw_constraints_rates = {
@@ -835,8 +836,9 @@ static snd_pcm_hw_constraint_list_t hw_constraints_rates = {
        .mask = 0,
 };
 
-unsigned char bits[] = {  0x01,  0x0f,  0x00,  0x0e,  0x03,  0x02,  0x05,
-                         0x07,  0x04,  0x06,  0x0d,  0x09,  0x0b,  0x0c};
+static unsigned char bits[] = {  0x01,  0x0f,  0x00,  0x0e,  0x03,  0x02,
+                                0x05,  0x07,  0x04,  0x06,  0x0d,  0x09,
+                                0x0b,  0x0c};
 
 static unsigned char snd_opti93x_get_freq(unsigned int rate)
 {