[PATCH] sound/oss/: cleanups

This patch contains cleanups including the following:
- make needlessly global code static

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Adrian Bunk and committed by Linus Torvalds 155542c2 4b849727

+11 -13
+1 -1
sound/oss/ad1816.c
··· 592 592 {{reg_l, pola_l, pos_l, len_l}, {reg_r, pola_r, pos_r, len_r}} 593 593 594 594 595 - mixer_ent mix_devices[SOUND_MIXER_NRDEVICES][2] = { 595 + static mixer_ent mix_devices[SOUND_MIXER_NRDEVICES][2] = { 596 596 MIX_ENT(SOUND_MIXER_VOLUME, 14, 1, 8, 5, 14, 1, 0, 5), 597 597 MIX_ENT(SOUND_MIXER_BASS, 0, 0, 0, 0, 0, 0, 0, 0), 598 598 MIX_ENT(SOUND_MIXER_TREBLE, 0, 0, 0, 0, 0, 0, 0, 0),
+1 -1
sound/oss/nm256.h
··· 284 284 } 285 285 286 286 /* Returns a non-zero value if we should use the coefficient cache. */ 287 - extern int nm256_cachedCoefficients (struct nm256_info *card); 287 + static int nm256_cachedCoefficients (struct nm256_info *card); 288 288 289 289 #endif 290 290
+2 -2
sound/oss/nm256_audio.c
··· 31 31 #include "nm256.h" 32 32 #include "nm256_coeff.h" 33 33 34 - int nm256_debug; 34 + static int nm256_debug; 35 35 static int force_load; 36 36 37 37 /* ··· 138 138 static int buffertop; 139 139 140 140 /* Check to see if we're using the bank of cached coefficients. */ 141 - int 141 + static int 142 142 nm256_cachedCoefficients (struct nm256_info *card) 143 143 { 144 144 return usecache;
+1 -1
sound/oss/nm256_coeff.h
··· 4650 4650 card->coeffsCurrent = 1; 4651 4651 } 4652 4652 4653 - void 4653 + static void 4654 4654 nm256_loadCoefficient (struct nm256_info *card, int which, int number) 4655 4655 { 4656 4656 static u16 addrs[3] = { 0x1c, 0x21c, 0x408 };
-2
sound/oss/v_midi.c
··· 39 39 */ 40 40 41 41 42 - void (*midi_input_intr) (int dev, unsigned char data); 43 - 44 42 static int v_midi_open (int dev, int mode, 45 43 void (*input) (int dev, unsigned char data), 46 44 void (*output) (int dev)
+6 -6
sound/oss/wavfront.c
··· 151 151 152 152 /*** Module-accessible parameters ***************************************/ 153 153 154 - int wf_raw; /* we normally check for "raw state" to firmware 155 - loading. if set, then during driver loading, the 156 - state of the board is ignored, and we reset the 157 - board and load the firmware anyway. 158 - */ 154 + static int wf_raw; /* we normally check for "raw state" to firmware 155 + loading. if set, then during driver loading, the 156 + state of the board is ignored, and we reset the 157 + board and load the firmware anyway. 158 + */ 159 159 160 160 static int fx_raw = 1; /* if this is zero, we'll leave the FX processor in 161 161 whatever state it is when the driver is loaded. ··· 2911 2911 return 0; 2912 2912 } 2913 2913 2914 - void 2914 + static void 2915 2915 wffx_mute (int onoff) 2916 2916 2917 2917 {