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