[PATCH] drivers/char/mwave/3780i.c: cleanups

This patch contains the following cleanups:
- make a needlessly global function static
- #if 0 the unused global function dsp3780I_ReadGenCfg

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
3b01b47c dbc6b5f5

+4 -6
+4 -2
drivers/char/mwave/3780i.c
··· 107 spin_unlock_irqrestore(&dsp_lock, flags); 108 } 109 110 - void dsp3780I_WriteGenCfg(unsigned short usDspBaseIO, unsigned uIndex, 111 - unsigned char ucValue) 112 { 113 DSP_ISA_SLAVE_CONTROL rSlaveControl; 114 DSP_ISA_SLAVE_CONTROL rSlaveControl_Save; ··· 141 142 } 143 144 unsigned char dsp3780I_ReadGenCfg(unsigned short usDspBaseIO, 145 unsigned uIndex) 146 { ··· 168 169 return ucValue; 170 } 171 172 int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, 173 unsigned short *pIrqMap,
··· 107 spin_unlock_irqrestore(&dsp_lock, flags); 108 } 109 110 + static void dsp3780I_WriteGenCfg(unsigned short usDspBaseIO, unsigned uIndex, 111 + unsigned char ucValue) 112 { 113 DSP_ISA_SLAVE_CONTROL rSlaveControl; 114 DSP_ISA_SLAVE_CONTROL rSlaveControl_Save; ··· 141 142 } 143 144 + #if 0 145 unsigned char dsp3780I_ReadGenCfg(unsigned short usDspBaseIO, 146 unsigned uIndex) 147 { ··· 167 168 return ucValue; 169 } 170 + #endif /* 0 */ 171 172 int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, 173 unsigned short *pIrqMap,
-4
drivers/char/mwave/3780i.h
··· 338 unsigned long ulMsaAddr); 339 void dsp3780I_WriteMsaCfg(unsigned short usDspBaseIO, 340 unsigned long ulMsaAddr, unsigned short usValue); 341 - void dsp3780I_WriteGenCfg(unsigned short usDspBaseIO, unsigned uIndex, 342 - unsigned char ucValue); 343 - unsigned char dsp3780I_ReadGenCfg(unsigned short usDspBaseIO, 344 - unsigned uIndex); 345 int dsp3780I_GetIPCSource(unsigned short usDspBaseIO, 346 unsigned short *pusIPCSource); 347
··· 338 unsigned long ulMsaAddr); 339 void dsp3780I_WriteMsaCfg(unsigned short usDspBaseIO, 340 unsigned long ulMsaAddr, unsigned short usValue); 341 int dsp3780I_GetIPCSource(unsigned short usDspBaseIO, 342 unsigned short *pusIPCSource); 343