drivers/char/mwave/3780i.c: cleanups
PATCH 1/1 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 <[email protected]>
---
drivers/char/mwave/3780i.c | 6 ++++-- drivers/char/mwave/3780i.h | 4 ---- 2 files changed, 4 insertions(+), 6 deletions(-)
drivers/char/mwave/3780i.h renamed from drivers/char/mwave/3780i.h.old +0 -4
@@ -338,10 +338,6 @@ unsigned long ulMsaAddr);void dsp3780I_WriteMsaCfg (unsigned short usDspBaseIO,unsigned long ulMsaAddr,unsigned short usValue); -void dsp3780I_WriteGenCfg (unsigned short usDspBaseIO,unsigned uIndex, -unsigned char ucValue); -unsigned char dsp3780I_ReadGenCfg (unsigned short usDspBaseIO, -unsigned uIndex);int dsp3780I_GetIPCSource (unsigned short usDspBaseIO,unsigned short *pusIPCSource);
drivers/char/mwave/3780i.c renamed from drivers/char/mwave/3780i.c.old +4 -2
@@ -107,8 +107,8 @@spin_unlock_irqrestore (&dsp_lock, flags); } -void dsp3780I_WriteGenCfg (unsigned short usDspBaseIO,unsigned uIndex, -unsigned char ucValue) +static void dsp3780I_WriteGenCfg (unsigned short usDspBaseIO,unsigned uIndex, +unsigned char ucValue) {DSP_ISA_SLAVE_CONTROL rSlaveControl;DSP_ISA_SLAVE_CONTROL rSlaveControl_Save;
@@ -141,6 +141,7 @@ } +#if 0 unsigned char dsp3780I_ReadGenCfg (unsigned short usDspBaseIO,unsigned uIndex) {
@@ -167,6 +168,7 @@return ucValue; } +#endif /* 0 */ int dsp3780I_EnableDSP(DSP_3780I_CONFIG_SETTINGS * pSettings, unsigned short *pIrqMap,