Skip to content

Commit 3b01b47

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[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>
1 parent dbc6b5f commit 3b01b47

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎drivers/char/mwave/3780i.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ void dsp3780I_WriteMsaCfg(unsigned short usDspBaseIO,
107107
spin_unlock_irqrestore(&dsp_lock, flags);
108108
}
109109

110-
void dsp3780I_WriteGenCfg(unsigned short usDspBaseIO, unsigned uIndex,
111-
unsigned char ucValue)
110+
static void dsp3780I_WriteGenCfg(unsigned short usDspBaseIO, unsigned uIndex,
111+
unsigned char ucValue)
112112
{
113113
DSP_ISA_SLAVE_CONTROL rSlaveControl;
114114
DSP_ISA_SLAVE_CONTROL rSlaveControl_Save;
@@ -141,6 +141,7 @@ void dsp3780I_WriteGenCfg(unsigned short usDspBaseIO, unsigned uIndex,
141141

142142
}
143143

144+
#if 0
144145
unsigned char dsp3780I_ReadGenCfg(unsigned short usDspBaseIO,
145146
unsigned uIndex)
146147
{
@@ -167,6 +168,7 @@ unsigned char dsp3780I_ReadGenCfg(unsigned short usDspBaseIO,
167168

168169
return ucValue;
169170
}
171+
#endif /* 0 */
170172

171173
int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings,
172174
unsigned short *pIrqMap,

‎drivers/char/mwave/3780i.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,6 @@ unsigned short dsp3780I_ReadMsaCfg(unsigned short usDspBaseIO,
338338
unsigned long ulMsaAddr);
339339
void dsp3780I_WriteMsaCfg(unsigned short usDspBaseIO,
340340
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);
345341
int dsp3780I_GetIPCSource(unsigned short usDspBaseIO,
346342
unsigned short *pusIPCSource);
347343

0 commit comments

Comments
 (0)