Commit d4cdc89d authored by Maciej Soltysiak's avatar Maciej Soltysiak Committed by Linus Torvalds

[PATCH] C99 initialisers for sound/oss

Here is a batch of C99 initialisers for sound/oss.
parent 6fe28935
......@@ -83,11 +83,11 @@ static int ad1980_probe(struct ac97_codec *codec, struct ac97_driver *driver)
static struct ac97_driver ad1980_driver = {
codec_id: 0x41445370,
codec_mask: 0xFFFFFFFF,
name: "AD1980 example",
probe: ad1980_probe,
remove: __devexit_p(ad1980_remove),
.codec_id = 0x41445370,
.codec_mask = 0xFFFFFFFF,
.name = "AD1980 example",
.probe = ad1980_probe,
.remove = __devexit_p(ad1980_remove),
};
/**
......
......@@ -775,14 +775,14 @@ static int ad1889_release(struct inode *inode, struct file *file)
}
static struct file_operations ad1889_fops = {
llseek: no_llseek,
read: ad1889_read,
write: ad1889_write,
poll: ad1889_poll,
ioctl: ad1889_ioctl,
mmap: ad1889_mmap,
open: ad1889_open,
release: ad1889_release,
.llseek = no_llseek,
.read = ad1889_read,
.write = ad1889_write,
.poll = ad1889_poll,
.ioctl = ad1889_ioctl,
.mmap = ad1889_mmap,
.open = ad1889_open,
.release = ad1889_release,
};
/************************* /dev/mixer interfaces ************************ */
......@@ -810,10 +810,10 @@ static int ad1889_mixer_ioctl(struct inode *inode, struct file *file,
}
static struct file_operations ad1889_mixer_fops = {
llseek: no_llseek,
ioctl: ad1889_mixer_ioctl,
open: ad1889_mixer_open,
release: ad1889_mixer_release,
.llseek = no_llseek,
.ioctl = ad1889_mixer_ioctl,
.open = ad1889_mixer_open,
.release = ad1889_mixer_release,
};
/************************* AC97 interfaces ****************************** */
......@@ -1064,10 +1064,10 @@ MODULE_DESCRIPTION("Analog Devices AD1889 PCI Audio");
MODULE_LICENSE("GPL");
static struct pci_driver ad1889_driver = {
name: DEVNAME,
id_table: ad1889_id_tbl,
probe: ad1889_probe,
remove: __devexit_p(ad1889_remove),
.name = DEVNAME,
.id_table = ad1889_id_tbl,
.probe = ad1889_probe,
.remove = __devexit_p(ad1889_remove),
};
static int __init ad1889_init_module(void)
......
......@@ -2933,15 +2933,15 @@ static int ali_release(struct inode *inode, struct file *file)
}
static /*const */ struct file_operations ali_audio_fops = {
owner:THIS_MODULE,
llseek:no_llseek,
read:ali_read,
write:ali_write,
poll:ali_poll,
ioctl:ali_ioctl,
mmap:ali_mmap,
open:ali_open,
release:ali_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = ali_read,
.write = ali_write,
.poll = ali_poll,
.ioctl = ali_ioctl,
.mmap = ali_mmap,
.open = ali_open,
.release = ali_release,
};
/* Read AC97 codec registers */
......@@ -3060,10 +3060,10 @@ static int ali_ioctl_mixdev(struct inode *inode,
}
static /*const */ struct file_operations ali_mixer_fops = {
owner:THIS_MODULE,
llseek:no_llseek,
ioctl:ali_ioctl_mixdev,
open:ali_open_mixdev,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = ali_ioctl_mixdev,
.open = ali_open_mixdev,
};
/* AC97 codec initialisation. These small functions exist so we don't
......@@ -3661,10 +3661,13 @@ MODULE_PARM(controller_pcmout_share_spdif_locked, "i");
MODULE_PARM(controller_independent_spdif_locked, "i");
#define ALI5455_MODULE_NAME "ali5455"
static struct pci_driver ali_pci_driver = {
name:ALI5455_MODULE_NAME, id_table:ali_pci_tbl, probe:ali_probe,
remove:__devexit_p(ali_remove),
.name = ALI5455_MODULE_NAME,
.id_table = ali_pci_tbl,
.probe = ali_probe,
.remove = __devexit_p(ali_remove),
#ifdef CONFIG_PM
suspend:ali_pm_suspend, resume:ali_pm_resume,
.suspend = ali_pm_suspend,
.resume = ali_pm_resume,
#endif /* CONFIG_PM */
};
......
......@@ -911,11 +911,11 @@ static int au1000_ioctl_mixdev(struct inode *inode, struct file *file,
}
static /*const */ struct file_operations au1000_mixer_fops = {
owner:THIS_MODULE,
llseek:au1000_llseek,
ioctl:au1000_ioctl_mixdev,
open:au1000_open_mixdev,
release:au1000_release_mixdev,
.owner = THIS_MODULE,
.llseek = au1000_llseek,
.ioctl = au1000_ioctl_mixdev,
.open = au1000_open_mixdev,
.release = au1000_release_mixdev,
};
/* --------------------------------------------------------------------- */
......@@ -1940,15 +1940,15 @@ static int au1000_release(struct inode *inode, struct file *file)
}
static /*const */ struct file_operations au1000_audio_fops = {
owner: THIS_MODULE,
llseek: au1000_llseek,
read: au1000_read,
write: au1000_write,
poll: au1000_poll,
ioctl: au1000_ioctl,
mmap: au1000_mmap,
open: au1000_open,
release: au1000_release,
.owner = THIS_MODULE,
.llseek = au1000_llseek,
.read = au1000_read,
.write = au1000_write,
.poll = au1000_poll,
.ioctl = au1000_ioctl,
.mmap = au1000_mmap,
.open = au1000_open,
.release = au1000_release,
};
......
......@@ -361,11 +361,11 @@ forte_mixer_ioctl (struct inode *inode, struct file *file,
static struct file_operations forte_mixer_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: forte_mixer_ioctl,
open: forte_mixer_open,
release: forte_mixer_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = forte_mixer_ioctl,
.open = forte_mixer_open,
.release = forte_mixer_release,
};
......@@ -1632,15 +1632,15 @@ forte_dsp_read (struct file *file, char *buffer, size_t bytes,
static struct file_operations forte_dsp_fops = {
owner: THIS_MODULE,
llseek: &no_llseek,
read: &forte_dsp_read,
write: &forte_dsp_write,
poll: &forte_dsp_poll,
ioctl: &forte_dsp_ioctl,
open: &forte_dsp_open,
release: &forte_dsp_release,
mmap: &forte_dsp_mmap,
.owner = THIS_MODULE,
.llseek = &no_llseek,
.read = &forte_dsp_read,
.write = &forte_dsp_write,
.poll = &forte_dsp_poll,
.ioctl = &forte_dsp_ioctl,
.open = &forte_dsp_open,
.release = &forte_dsp_release,
.mmap = &forte_dsp_mmap,
};
......@@ -2099,10 +2099,10 @@ static struct pci_device_id forte_pci_ids[] = {
static struct pci_driver forte_pci_driver = {
name: DRIVER_NAME,
id_table: forte_pci_ids,
probe: forte_probe,
remove: forte_remove,
.name = DRIVER_NAME,
.id_table = forte_pci_ids,
.probe = forte_probe,
.remove = forte_remove,
};
......
......@@ -1313,22 +1313,22 @@ static int hal2_release(struct inode *inode, struct file *file)
}
static struct file_operations hal2_audio_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: hal2_read,
write: hal2_write,
poll: hal2_poll,
ioctl: hal2_ioctl,
open: hal2_open,
release: hal2_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = hal2_read,
.write = hal2_write,
.poll = hal2_poll,
.ioctl = hal2_ioctl,
.open = hal2_open,
.release = hal2_release,
};
static struct file_operations hal2_mixer_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
ioctl: hal2_ioctl_mixdev,
open: hal2_open_mixdev,
release: hal2_release_mixdev,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = hal2_ioctl_mixdev,
.open = hal2_open_mixdev,
.release = hal2_release_mixdev,
};
static int hal2_request_irq(hal2_card_t *hal2, int irq)
......
......@@ -822,14 +822,14 @@ static irqreturn_t harmony_interrupt(int irq, void *dev, struct pt_regs *regs)
*/
static struct file_operations harmony_audio_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
read: harmony_audio_read,
write: harmony_audio_write,
poll: harmony_audio_poll,
ioctl: harmony_audio_ioctl,
open: harmony_audio_open,
release:harmony_audio_release,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = harmony_audio_read,
.write = harmony_audio_write,
.poll = harmony_audio_poll,
.ioctl = harmony_audio_ioctl,
.open = harmony_audio_open,
.release = harmony_audio_release,
};
static int harmony_audio_init(void)
......@@ -1144,11 +1144,11 @@ static int harmony_mixer_release(struct inode *inode, struct file *file)
}
static struct file_operations harmony_mixer_fops = {
owner: THIS_MODULE,
llseek: no_llseek,
open: harmony_mixer_open,
release: harmony_mixer_release,
ioctl: harmony_mixer_ioctl,
.owner = THIS_MODULE,
.llseek = no_llseek,
.open = harmony_mixer_open,
.release = harmony_mixer_release,
.ioctl = harmony_mixer_ioctl,
};
......@@ -1274,9 +1274,9 @@ static struct parisc_device_id harmony_tbl[] = {
MODULE_DEVICE_TABLE(parisc, harmony_tbl);
static struct parisc_driver harmony_driver = {
name: "Lasi Harmony",
id_table: harmony_tbl,
probe: harmony_driver_callback,
.name = "Lasi Harmony",
.id_table = harmony_tbl,
.probe = harmony_driver_callback,
};
static int __init init_harmony(void)
......
......@@ -1005,11 +1005,11 @@ static int it8172_ioctl_mixdev(struct inode *inode, struct file *file,
}
static /*const*/ struct file_operations it8172_mixer_fops = {
owner: THIS_MODULE,
llseek: it8172_llseek,
ioctl: it8172_ioctl_mixdev,
open: it8172_open_mixdev,
release: it8172_release_mixdev,
.owner = THIS_MODULE,
.llseek = it8172_llseek,
.ioctl = it8172_ioctl_mixdev,
.open = it8172_open_mixdev,
.release = it8172_release_mixdev,
};
/* --------------------------------------------------------------------- */
......@@ -1874,15 +1874,15 @@ static int it8172_release(struct inode *inode, struct file *file)
}
static /*const*/ struct file_operations it8172_audio_fops = {
owner: THIS_MODULE,
llseek: it8172_llseek,
read: it8172_read,
write: it8172_write,
poll: it8172_poll,
ioctl: it8172_ioctl,
mmap: it8172_mmap,
open: it8172_open,
release: it8172_release,
.owner = THIS_MODULE,
.llseek = it8172_llseek,
.read = it8172_read,
.write = it8172_write,
.poll = it8172_poll,
.ioctl = it8172_ioctl,
.mmap = it8172_mmap,
.open = it8172_open,
.release = it8172_release,
};
......
......@@ -203,10 +203,10 @@ static struct pci_device_id id_tbl[] = {
MODULE_DEVICE_TABLE(pci, id_tbl);
static struct pci_driver kahlua_driver = {
name: "kahlua",
id_table: id_tbl,
probe: probe_one,
remove: __devexit_p(remove_one),
.name = "kahlua",
.id_table = id_tbl,
.probe = probe_one,
.remove = __devexit_p(remove_one),
};
......
......@@ -1590,10 +1590,10 @@ static int cs4297a_ioctl_mixdev(struct inode *inode, struct file *file,
// Mixer file operations struct.
// ******************************************************************************************
static /*const */ struct file_operations cs4297a_mixer_fops = {
llseek:cs4297a_llseek,
ioctl:cs4297a_ioctl_mixdev,
open:cs4297a_open_mixdev,
release:cs4297a_release_mixdev,
.llseek = cs4297a_llseek,
.ioctl = cs4297a_ioctl_mixdev,
.open = cs4297a_open_mixdev,
.release = cs4297a_release_mixdev,
};
// ---------------------------------------------------------------------
......@@ -2508,14 +2508,14 @@ static int cs4297a_open(struct inode *inode, struct file *file)
// Wave (audio) file operations struct.
// ******************************************************************************************
static /*const */ struct file_operations cs4297a_audio_fops = {
llseek:cs4297a_llseek,
read:cs4297a_read,
write:cs4297a_write,
poll:cs4297a_poll,
ioctl:cs4297a_ioctl,
mmap:cs4297a_mmap,
open:cs4297a_open,
release:cs4297a_release,
.llseek = cs4297a_llseek,
.read = cs4297a_read,
.write = cs4297a_write,
.poll = cs4297a_poll,
.ioctl = cs4297a_ioctl,
.mmap = cs4297a_mmap,
.open = cs4297a_open,
.release = cs4297a_release,
};
static irqreturn_t cs4297a_interrupt(int irq, void *dev_id, struct pt_regs *regs)
......
......@@ -398,10 +398,10 @@ MODULE_DEVICE_TABLE(pci,via_pci_tbl);
static struct pci_driver via_driver = {
name: VIA_MODULE_NAME,
id_table: via_pci_tbl,
probe: via_init_one,
remove: __devexit_p(via_remove_one),
.name = VIA_MODULE_NAME,
.id_table = via_pci_tbl,
.probe = via_init_one,
.remove = __devexit_p(via_remove_one),
};
......@@ -2057,15 +2057,15 @@ static int via_interrupt_init (struct via_info *card)
*/
static struct file_operations via_dsp_fops = {
owner: THIS_MODULE,
open: via_dsp_open,
release: via_dsp_release,
read: via_dsp_read,
write: via_dsp_write,
poll: via_dsp_poll,
llseek: no_llseek,
ioctl: via_dsp_ioctl,
mmap: via_dsp_mmap,
.owner = THIS_MODULE,
.open = via_dsp_open,
.release = via_dsp_release,
.read = via_dsp_read,
.write = via_dsp_write,
.poll = via_dsp_poll,
.llseek = no_llseek,
.ioctl = via_dsp_ioctl,
.mmap = via_dsp_mmap,
};
......@@ -2179,10 +2179,10 @@ static int via_mm_swapout (struct page *page, struct file *filp)
struct vm_operations_struct via_mm_ops = {
nopage: via_mm_nopage,
.nopage = via_mm_nopage,
#ifndef VM_RESERVED
swapout: via_mm_swapout,
.swapout = via_mm_swapout,
#endif
};
......
......@@ -1107,9 +1107,9 @@ MODULE_DEVICE_TABLE(parisc, snd_card_harmony_devicetbl);
*/
static struct parisc_driver snd_card_harmony_driver = {
name: "Lasi ALSA Harmony",
id_table: snd_card_harmony_devicetbl,
probe: snd_card_harmony_probe,
.name = "Lasi ALSA Harmony",
.id_table = snd_card_harmony_devicetbl,
.probe = snd_card_harmony_probe,
};
static int __init alsa_card_harmony_init(void)
......
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