Commit 8bc47ee1 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] lots more version and C99 for audio

parent 5520402f
......@@ -58,7 +58,6 @@
//#define NOT_CS4281_PM 1
#include <linux/list.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/ioport.h>
......
......@@ -77,7 +77,6 @@
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/ioport.h>
......
......@@ -767,39 +767,39 @@ static ssize_t ata_ctx_u16le(const u_char *userPtr, size_t userCount,
static TRANS transTTNormal = {
ct_ulaw: ata_ct_law,
ct_alaw: ata_ct_law,
ct_s8: ata_ct_s8,
ct_u8: ata_ct_u8,
.ct_ulaw = ata_ct_law,
.ct_alaw = ata_ct_law,
.ct_s8 = ata_ct_s8,
.ct_u8 = ata_ct_u8,
};
static TRANS transTTExpanding = {
ct_ulaw: ata_ctx_law,
ct_alaw: ata_ctx_law,
ct_s8: ata_ctx_s8,
ct_u8: ata_ctx_u8,
.ct_ulaw = ata_ctx_law,
.ct_alaw = ata_ctx_law,
.ct_s8 = ata_ctx_s8,
.ct_u8 = ata_ctx_u8,
};
static TRANS transFalconNormal = {
ct_ulaw: ata_ct_law,
ct_alaw: ata_ct_law,
ct_s8: ata_ct_s8,
ct_u8: ata_ct_u8,
ct_s16be: ata_ct_s16be,
ct_u16be: ata_ct_u16be,
ct_s16le: ata_ct_s16le,
ct_u16le: ata_ct_u16le
.ct_ulaw = ata_ct_law,
.ct_alaw = ata_ct_law,
.ct_s8 = ata_ct_s8,
.ct_u8 = ata_ct_u8,
.ct_s16be = ata_ct_s16be,
.ct_u16be = ata_ct_u16be,
.ct_s16le = ata_ct_s16le,
.ct_u16le = ata_ct_u16le
};
static TRANS transFalconExpanding = {
ct_ulaw: ata_ctx_law,
ct_alaw: ata_ctx_law,
ct_s8: ata_ctx_s8,
ct_u8: ata_ctx_u8,
ct_s16be: ata_ctx_s16be,
ct_u16be: ata_ctx_u16be,
ct_s16le: ata_ctx_s16le,
ct_u16le: ata_ctx_u16le,
.ct_ulaw = ata_ctx_law,
.ct_alaw = ata_ctx_law,
.ct_s8 = ata_ctx_s8,
.ct_u8 = ata_ctx_u8,
.ct_s16be = ata_ctx_s16be,
.ct_u16be = ata_ctx_u16be,
.ct_s16le = ata_ctx_s16le,
.ct_u16le = ata_ctx_u16le,
};
......@@ -1495,81 +1495,81 @@ static int FalconStateInfo(char *buffer, size_t space)
/*** Machine definitions *****************************************************/
static SETTINGS def_hard_falcon = {
format: AFMT_S8,
stereo: 0,
size: 8,
speed: 8195
.format = AFMT_S8,
.stereo = 0,
.size = 8,
.speed = 8195
} ;
static SETTINGS def_hard_tt = {
format: AFMT_S8,
stereo: 0,
size: 8,
speed: 12517
.format = AFMT_S8,
.stereo = 0,
.size = 8,
.speed = 12517
} ;
static SETTINGS def_soft = {
format: AFMT_U8,
stereo: 0,
size: 8,
speed: 8000
.format = AFMT_U8,
.stereo = 0,
.size = 8,
.speed = 8000
} ;
static MACHINE machTT = {
name: "Atari",
name2: "TT",
open: AtaOpen,
release: AtaRelease,
dma_alloc: AtaAlloc,
dma_free: AtaFree,
irqinit: AtaIrqInit,
.name = "Atari",
.name2 = "TT",
.open = AtaOpen,
.release = AtaRelease,
.dma_alloc = AtaAlloc,
.dma_free = AtaFree,
.irqinit = AtaIrqInit,
#ifdef MODULE
irqcleanup: AtaIrqCleanUp,
.irqcleanup = AtaIrqCleanUp,
#endif /* MODULE */
init: TTInit,
silence: TTSilence,
setFormat: TTSetFormat,
setVolume: TTSetVolume,
setBass: AtaSetBass,
setTreble: AtaSetTreble,
setGain: TTSetGain,
play: AtaPlay,
mixer_init: TTMixerInit,
mixer_ioctl: TTMixerIoctl,
write_sq_setup: AtaWriteSqSetup,
sq_open: AtaSqOpen,
state_info: TTStateInfo,
min_dsp_speed: 6258,
version: ((DMASOUND_ATARI_REVISION<<8) | DMASOUND_ATARI_EDITION),
hardware_afmts: AFMT_S8, /* h'ware-supported formats *only* here */
capabilities: DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
.init = TTInit,
.silence = TTSilence,
.setFormat = TTSetFormat,
.setVolume = TTSetVolume,
.setBass = AtaSetBass,
.setTreble = AtaSetTreble,
.setGain = TTSetGain,
.play = AtaPlay,
.mixer_init = TTMixerInit,
.mixer_ioctl = TTMixerIoctl,
.write_sq_setup = AtaWriteSqSetup,
.sq_open = AtaSqOpen,
.state_info = TTStateInfo,
.min_dsp_speed = 6258,
.version = ((DMASOUND_ATARI_REVISION<<8) | DMASOUND_ATARI_EDITION),
.hardware_afmts = AFMT_S8, /* h'ware-supported formats *only* here */
.capabilities = DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
};
static MACHINE machFalcon = {
name: "Atari",
name2: "FALCON",
dma_alloc: AtaAlloc,
dma_free: AtaFree,
irqinit: AtaIrqInit,
.name = "Atari",
.name2 = "FALCON",
.dma_alloc = AtaAlloc,
.dma_free = AtaFree,
.irqinit = AtaIrqInit,
#ifdef MODULE
irqcleanup: AtaIrqCleanUp,
.irqcleanup = AtaIrqCleanUp,
#endif /* MODULE */
init: FalconInit,
silence: FalconSilence,
setFormat: FalconSetFormat,
setVolume: FalconSetVolume,
setBass: AtaSetBass,
setTreble: AtaSetTreble,
play: AtaPlay,
mixer_init: FalconMixerInit,
mixer_ioctl: FalconMixerIoctl,
write_sq_setup: AtaWriteSqSetup,
sq_open: AtaSqOpen,
state_info: FalconStateInfo,
min_dsp_speed: 8195,
version: ((DMASOUND_ATARI_REVISION<<8) | DMASOUND_ATARI_EDITION),
hardware_afmts: (AFMT_S8 | AFMT_S16_BE), /* h'ware-supported formats *only* here */
capabilities: DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
.init = FalconInit,
.silence = FalconSilence,
.setFormat = FalconSetFormat,
.setVolume = FalconSetVolume,
.setBass = AtaSetBass,
.setTreble = AtaSetTreble,
.play = AtaPlay,
.mixer_init = FalconMixerInit,
.mixer_ioctl = FalconMixerIoctl,
.write_sq_setup = AtaWriteSqSetup,
.sq_open = AtaSqOpen,
.state_info = FalconStateInfo,
.min_dsp_speed = 8195,
.version = ((DMASOUND_ATARI_REVISION<<8) | DMASOUND_ATARI_EDITION),
.hardware_afmts = (AFMT_S8 | AFMT_S16_BE), /* h'ware-supported formats *only* here */
.capabilities = DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
};
......
......@@ -2405,45 +2405,45 @@ static int PMacStateInfo(char *b, size_t sp)
/*** Machine definitions *****************************************************/
static SETTINGS def_hard = {
format: AFMT_S16_BE,
stereo: 1,
size: 16,
speed: 44100
.format = AFMT_S16_BE,
.stereo = 1,
.size = 16,
.speed = 44100
} ;
static SETTINGS def_soft = {
format: AFMT_S16_BE,
stereo: 1,
size: 16,
speed: 44100
.format = AFMT_S16_BE,
.stereo = 1,
.size = 16,
.speed = 44100
} ;
static MACHINE machPMac = {
name: awacs_name,
name2: "PowerMac Built-in Sound",
open: PMacOpen,
release: PMacRelease,
dma_alloc: PMacAlloc,
dma_free: PMacFree,
irqinit: PMacIrqInit,
.name = awacs_name,
.name2 = "PowerMac Built-in Sound",
.open = PMacOpen,
.release = PMacRelease,
.dma_alloc = PMacAlloc,
.dma_free = PMacFree,
.irqinit = PMacIrqInit,
#ifdef MODULE
irqcleanup: PMacIrqCleanup,
.irqcleanup = PMacIrqCleanup,
#endif /* MODULE */
init: PMacInit,
silence: PMacSilence,
setFormat: PMacSetFormat,
setVolume: PMacSetVolume,
play: PMacPlay,
record: NULL, /* default to no record */
mixer_init: PMacMixerInit,
mixer_ioctl: PMacMixerIoctl,
write_sq_setup: PMacWriteSqSetup,
read_sq_setup: PMacReadSqSetup,
state_info: PMacStateInfo,
abort_read: PMacAbortRead,
min_dsp_speed: 7350,
max_dsp_speed: 44100,
version: ((DMASOUND_AWACS_REVISION<<8) + DMASOUND_AWACS_EDITION)
.init = PMacInit,
.silence = PMacSilence,
.setFormat = PMacSetFormat,
.setVolume = PMacSetVolume,
.play = PMacPlay,
.record = NULL, /* default to no record */
.mixer_init = PMacMixerInit,
.mixer_ioctl = PMacMixerIoctl,
.write_sq_setup = PMacWriteSqSetup,
.read_sq_setup = PMacReadSqSetup,
.state_info = PMacStateInfo,
.abort_read = PMacAbortRead,
.min_dsp_speed = 7350,
.max_dsp_speed = 44100,
.version = ((DMASOUND_AWACS_REVISION<<8) + DMASOUND_AWACS_EDITION)
};
......
......@@ -367,11 +367,11 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
static struct file_operations mixer_fops =
{
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: mixer_ioctl,
open: mixer_open,
release: mixer_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = mixer_ioctl,
.open = mixer_open,
.release = mixer_release,
};
static void __init mixer_init(void)
......@@ -1325,15 +1325,15 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
static struct file_operations sq_fops =
{
owner: THIS_MODULE,
llseek: no_llseek,
write: sq_write,
poll: sq_poll,
ioctl: sq_ioctl,
open: sq_open,
release: sq_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.write = sq_write,
.poll = sq_poll,
.ioctl = sq_ioctl,
.open = sq_open,
.release = sq_release,
#ifdef HAS_RECORD
read: NULL /* default to no read for compat mode */
.read = NULL /* default to no read for compat mode */
#endif
};
......@@ -1548,11 +1548,11 @@ static ssize_t state_read(struct file *file, char *buf, size_t count,
}
static struct file_operations state_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: state_read,
open: state_open,
release: state_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = state_read,
.open = state_open,
.release = state_release,
};
static int __init state_init(void)
......
......@@ -298,14 +298,14 @@ GENERATE_AMI_CT_16(ami_ct_u16le, AMI_CT_U16LE)
static TRANS transAmiga = {
ct_ulaw: ami_ct_ulaw,
ct_alaw: ami_ct_alaw,
ct_s8: ami_ct_s8,
ct_u8: ami_ct_u8,
ct_s16be: ami_ct_s16be,
ct_u16be: ami_ct_u16be,
ct_s16le: ami_ct_s16le,
ct_u16le: ami_ct_u16le,
.ct_ulaw = ami_ct_ulaw,
.ct_alaw = ami_ct_alaw,
.ct_s8 = ami_ct_s8,
.ct_u8 = ami_ct_u8,
.ct_s16be = ami_ct_s16be,
.ct_u16be = ami_ct_u16be,
.ct_s16le = ami_ct_s16le,
.ct_u16le = ami_ct_u16le,
};
/*** Low level stuff *********************************************************/
......@@ -681,44 +681,44 @@ static int AmiStateInfo(char *buffer, size_t space)
/*** Machine definitions *****************************************************/
static SETTINGS def_hard = {
format: AFMT_S8,
stereo: 0,
size: 8,
speed: 8000
.format = AFMT_S8,
.stereo = 0,
.size = 8,
.speed = 8000
} ;
static SETTINGS def_soft = {
format: AFMT_U8,
stereo: 0,
size: 8,
speed: 8000
.format = AFMT_U8,
.stereo = 0,
.size = 8,
.speed = 8000
} ;
static MACHINE machAmiga = {
name: "Amiga",
name2: "AMIGA",
open: AmiOpen,
release: AmiRelease,
dma_alloc: AmiAlloc,
dma_free: AmiFree,
irqinit: AmiIrqInit,
.name = "Amiga",
.name2 = "AMIGA",
.open = AmiOpen,
.release = AmiRelease,
.dma_alloc = AmiAlloc,
.dma_free = AmiFree,
.irqinit = AmiIrqInit,
#ifdef MODULE
irqcleanup: AmiIrqCleanUp,
.irqcleanup = AmiIrqCleanUp,
#endif /* MODULE */
init: AmiInit,
silence: AmiSilence,
setFormat: AmiSetFormat,
setVolume: AmiSetVolume,
setTreble: AmiSetTreble,
play: AmiPlay,
mixer_init: AmiMixerInit,
mixer_ioctl: AmiMixerIoctl,
write_sq_setup: AmiWriteSqSetup,
state_info: AmiStateInfo,
min_dsp_speed: 8000,
version: ((DMASOUND_PAULA_REVISION<<8) | DMASOUND_PAULA_EDITION),
hardware_afmts: (AFMT_S8 | AFMT_S16_BE), /* h'ware-supported formats *only* here */
capabilities: DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
.init = AmiInit,
.silence = AmiSilence,
.setFormat = AmiSetFormat,
.setVolume = AmiSetVolume,
.setTreble = AmiSetTreble,
.play = AmiPlay,
.mixer_init = AmiMixerInit,
.mixer_ioctl = AmiMixerIoctl,
.write_sq_setup = AmiWriteSqSetup,
.state_info = AmiStateInfo,
.min_dsp_speed = 8000,
.version = ((DMASOUND_PAULA_REVISION<<8) | DMASOUND_PAULA_EDITION),
.hardware_afmts = (AFMT_S8 | AFMT_S16_BE), /* h'ware-supported formats *only* here */
.capabilities = DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
};
......
......@@ -584,39 +584,39 @@ static int Q40SetVolume(int volume)
/*** Machine definitions *****************************************************/
static SETTINGS def_hard = {
format: AFMT_U8,
stereo: 0,
size: 8,
speed: 10000
.format = AFMT_U8,
.stereo = 0,
.size = 8,
.speed = 10000
} ;
static SETTINGS def_soft = {
format: AFMT_U8,
stereo: 0,
size: 8,
speed: 8000
.format = AFMT_U8,
.stereo = 0,
.size = 8,
.speed = 8000
} ;
static MACHINE machQ40 = {
name: "Q40",
name2: "Q40",
open: Q40Open,
release: Q40Release,
dma_alloc: Q40Alloc,
dma_free: Q40Free,
irqinit: Q40IrqInit,
.name = "Q40",
.name2 = "Q40",
.open = Q40Open,
.release = Q40Release,
.dma_alloc = Q40Alloc,
.dma_free = Q40Free,
.irqinit = Q40IrqInit,
#ifdef MODULE
irqcleanup: Q40IrqCleanUp,
.irqcleanup = Q40IrqCleanUp,
#endif /* MODULE */
init: Q40Init,
silence: Q40Silence,
setFormat: Q40SetFormat,
setVolume: Q40SetVolume,
play: Q40Play,
min_dsp_speed: 10000,
version: ((DMASOUND_Q40_REVISION<<8) | DMASOUND_Q40_EDITION),
hardware_afmts: AFMT_U8, /* h'ware-supported formats *only* here */
capabilities: DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
.init = Q40Init,
.silence = Q40Silence,
.setFormat = Q40SetFormat,
.setVolume = Q40SetVolume,
.play = Q40Play,
.min_dsp_speed = 10000,
.version = ((DMASOUND_Q40_REVISION<<8) | DMASOUND_Q40_EDITION),
.hardware_afmts = AFMT_U8, /* h'ware-supported formats *only* here */
.capabilities = DSP_CAP_BATCH /* As per SNDCTL_DSP_GETCAPS */
};
......
......@@ -33,7 +33,6 @@
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <linux/sched.h>
......@@ -1020,7 +1019,7 @@ static struct page *emu10k1_mm_nopage (struct vm_area_struct * vma, unsigned lon
}
struct vm_operations_struct emu10k1_mm_ops = {
nopage: emu10k1_mm_nopage,
.nopage = emu10k1_mm_nopage,
};
static int emu10k1_audio_mmap(struct file *file, struct vm_area_struct *vma)
......@@ -1558,13 +1557,13 @@ void emu10k1_waveout_bh(unsigned long refdata)
}
struct file_operations emu10k1_audio_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: emu10k1_audio_read,
write: emu10k1_audio_write,
poll: emu10k1_audio_poll,
ioctl: emu10k1_audio_ioctl,
mmap: emu10k1_audio_mmap,
open: emu10k1_audio_open,
release: emu10k1_audio_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = emu10k1_audio_read,
.write = emu10k1_audio_write,
.poll = emu10k1_audio_poll,
.ioctl = emu10k1_audio_ioctl,
.mmap = emu10k1_audio_mmap,
.open = emu10k1_audio_open,
.release = emu10k1_audio_release,
};
......@@ -86,7 +86,6 @@
*********************************************************************/
/* These are only included once per module */
#include <linux/version.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
......@@ -1144,10 +1143,10 @@ MODULE_DESCRIPTION("Creative EMU10K1 PCI Audio Driver v" DRIVER_VERSION "\nCopyr
MODULE_LICENSE("GPL");
static struct pci_driver emu10k1_pci_driver = {
name: "emu10k1",
id_table: emu10k1_pci_tbl,
probe: emu10k1_probe,
remove: __devexit_p(emu10k1_remove),
.name = "emu10k1",
.id_table = emu10k1_pci_tbl,
.probe = emu10k1_probe,
.remove = __devexit_p(emu10k1_remove),
};
static int __init emu10k1_init_module(void)
......
......@@ -32,7 +32,6 @@
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
......@@ -465,12 +464,12 @@ int emu10k1_midi_callback(unsigned long msg, unsigned long refdata, unsigned lon
/* MIDI file operations */
struct file_operations emu10k1_midi_fops = {
owner: THIS_MODULE,
read: emu10k1_midi_read,
write: emu10k1_midi_write,
poll: emu10k1_midi_poll,
open: emu10k1_midi_open,
release: emu10k1_midi_release,
.owner = THIS_MODULE,
.read = emu10k1_midi_read,
.write = emu10k1_midi_write,
.poll = emu10k1_midi_poll,
.open = emu10k1_midi_open,
.release = emu10k1_midi_release,
};
......
......@@ -31,7 +31,6 @@
*/
#include <linux/module.h>
#include <linux/version.h>
#include <asm/uaccess.h>
#include <linux/fs.h>
......@@ -675,9 +674,9 @@ static int emu10k1_mixer_release(struct inode *inode, struct file *file)
}
struct file_operations emu10k1_mixer_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: emu10k1_mixer_ioctl,
open: emu10k1_mixer_open,
release: emu10k1_mixer_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = emu10k1_mixer_ioctl,
.open = emu10k1_mixer_open,
.release = emu10k1_mixer_release,
};
......@@ -32,7 +32,6 @@
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <linux/sched.h>
......
......@@ -140,7 +140,6 @@
/*****************************************************************************/
#include <linux/version.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/string.h>
......@@ -1054,11 +1053,11 @@ static int es1370_ioctl_mixdev(struct inode *inode, struct file *file, unsigned
}
static /*const*/ struct file_operations es1370_mixer_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: es1370_ioctl_mixdev,
open: es1370_open_mixdev,
release: es1370_release_mixdev,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = es1370_ioctl_mixdev,
.open = es1370_open_mixdev,
.release = es1370_release_mixdev,
};
/* --------------------------------------------------------------------- */
......@@ -1816,15 +1815,15 @@ static int es1370_release(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations es1370_audio_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: es1370_read,
write: es1370_write,
poll: es1370_poll,
ioctl: es1370_ioctl,
mmap: es1370_mmap,
open: es1370_open,
release: es1370_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = es1370_read,
.write = es1370_write,
.poll = es1370_poll,
.ioctl = es1370_ioctl,
.mmap = es1370_mmap,
.open = es1370_open,
.release = es1370_release,
};
/* --------------------------------------------------------------------- */
......@@ -2240,14 +2239,14 @@ static int es1370_release_dac(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations es1370_dac_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
write: es1370_write_dac,
poll: es1370_poll_dac,
ioctl: es1370_ioctl_dac,
mmap: es1370_mmap_dac,
open: es1370_open_dac,
release: es1370_release_dac,
.owner = THIS_MODULE,
.llseek = no_llseek,
.write = es1370_write_dac,
.poll = es1370_poll_dac,
.ioctl = es1370_ioctl_dac,
.mmap = es1370_mmap_dac,
.open = es1370_open_dac,
.release = es1370_release_dac,
};
/* --------------------------------------------------------------------- */
......@@ -2513,13 +2512,13 @@ static int es1370_midi_release(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations es1370_midi_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: es1370_midi_read,
write: es1370_midi_write,
poll: es1370_midi_poll,
open: es1370_midi_open,
release: es1370_midi_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = es1370_midi_read,
.write = es1370_midi_write,
.poll = es1370_midi_poll,
.open = es1370_midi_open,
.release = es1370_midi_release,
};
/* --------------------------------------------------------------------- */
......
......@@ -109,7 +109,6 @@
/*****************************************************************************/
#include <linux/version.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/string.h>
......@@ -1243,11 +1242,11 @@ static int es1371_ioctl_mixdev(struct inode *inode, struct file *file, unsigned
}
static /*const*/ struct file_operations es1371_mixer_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: es1371_ioctl_mixdev,
open: es1371_open_mixdev,
release: es1371_release_mixdev,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = es1371_ioctl_mixdev,
.open = es1371_open_mixdev,
.release = es1371_release_mixdev,
};
/* --------------------------------------------------------------------- */
......@@ -2004,15 +2003,15 @@ static int es1371_release(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations es1371_audio_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: es1371_read,
write: es1371_write,
poll: es1371_poll,
ioctl: es1371_ioctl,
mmap: es1371_mmap,
open: es1371_open,
release: es1371_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = es1371_read,
.write = es1371_write,
.poll = es1371_poll,
.ioctl = es1371_ioctl,
.mmap = es1371_mmap,
.open = es1371_open,
.release = es1371_release,
};
/* --------------------------------------------------------------------- */
......@@ -2418,14 +2417,14 @@ static int es1371_release_dac(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations es1371_dac_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
write: es1371_write_dac,
poll: es1371_poll_dac,
ioctl: es1371_ioctl_dac,
mmap: es1371_mmap_dac,
open: es1371_open_dac,
release: es1371_release_dac,
.owner = THIS_MODULE,
.llseek = no_llseek,
.write = es1371_write_dac,
.poll = es1371_poll_dac,
.ioctl = es1371_ioctl_dac,
.mmap = es1371_mmap_dac,
.open = es1371_open_dac,
.release = es1371_release_dac,
};
/* --------------------------------------------------------------------- */
......@@ -2690,13 +2689,13 @@ static int es1371_midi_release(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations es1371_midi_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: es1371_midi_read,
write: es1371_midi_write,
poll: es1371_midi_poll,
open: es1371_midi_open,
release: es1371_midi_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = es1371_midi_read,
.write = es1371_midi_write,
.poll = es1371_midi_poll,
.open = es1371_midi_open,
.release = es1371_midi_release,
};
/* --------------------------------------------------------------------- */
......
......@@ -87,7 +87,6 @@
/*****************************************************************************/
#include <linux/version.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/string.h>
......@@ -951,11 +950,11 @@ static int solo1_ioctl_mixdev(struct inode *inode, struct file *file, unsigned i
}
static /*const*/ struct file_operations solo1_mixer_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: solo1_ioctl_mixdev,
open: solo1_open_mixdev,
release: solo1_release_mixdev,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = solo1_ioctl_mixdev,
.open = solo1_open_mixdev,
.release = solo1_release_mixdev,
};
/* --------------------------------------------------------------------- */
......@@ -1650,15 +1649,15 @@ static int solo1_open(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations solo1_audio_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: solo1_read,
write: solo1_write,
poll: solo1_poll,
ioctl: solo1_ioctl,
mmap: solo1_mmap,
open: solo1_open,
release: solo1_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = solo1_read,
.write = solo1_write,
.poll = solo1_poll,
.ioctl = solo1_ioctl,
.mmap = solo1_mmap,
.open = solo1_open,
.release = solo1_release,
};
/* --------------------------------------------------------------------- */
......@@ -2001,13 +2000,13 @@ static int solo1_midi_release(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations solo1_midi_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: solo1_midi_read,
write: solo1_midi_write,
poll: solo1_midi_poll,
open: solo1_midi_open,
release: solo1_midi_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = solo1_midi_read,
.write = solo1_midi_write,
.poll = solo1_midi_poll,
.open = solo1_midi_open,
.release = solo1_midi_release,
};
/* --------------------------------------------------------------------- */
......@@ -2189,11 +2188,11 @@ static int solo1_dmfm_release(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations solo1_dmfm_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: solo1_dmfm_ioctl,
open: solo1_dmfm_open,
release: solo1_dmfm_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = solo1_dmfm_ioctl,
.open = solo1_dmfm_open,
.release = solo1_dmfm_release,
};
/* --------------------------------------------------------------------- */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment