C99 initializers for sound/pci/ac97/ac97_codec.c
PATCH 1/1 C99 initializers for sound/pci/ac97/ac97_codec.c
Hi.
This patch converts the file to use C99 initializers.
===== sound/pci/ac97/ac97_codec.c 1.29 vs edited =====
sound/pci/ac97/ac97_codec.c +15 -15
@@ -1097,11 +1097,11 @@static const snd_kcontrol_new_t snd_ac97_ymf753_controls_speaker = { - iface:SNDRV_CTL_ELEM_IFACE_MIXER , - name:"3D Control - Speaker" , - info: snd_ac97_ymf753_info_speaker, - get: snd_ac97_ymf753_get_speaker, - put: snd_ac97_ymf753_put_speaker, + .iface =SNDRV_CTL_ELEM_IFACE_MIXER , + .name ="3D Control - Speaker" , + .info = snd_ac97_ymf753_info_speaker, + .get = snd_ac97_ymf753_get_speaker, + .put = snd_ac97_ymf753_put_speaker, };/* It is possible to indicate to the Yamaha YMF753 the source to direct to the S/PDIF output. */
@@ -1182,18 +1182,18 @@static const snd_kcontrol_new_t snd_ac97_ymf753_controls_spdif[3 ] = { { - iface:SNDRV_CTL_ELEM_IFACE_MIXER , - name: SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Source", - info: snd_ac97_ymf753_spdif_source_info, - get: snd_ac97_ymf753_spdif_source_get, - put: snd_ac97_ymf753_spdif_source_put, + .iface =SNDRV_CTL_ELEM_IFACE_MIXER , + .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Source", + .info = snd_ac97_ymf753_spdif_source_info, + .get = snd_ac97_ymf753_spdif_source_get, + .put = snd_ac97_ymf753_spdif_source_put, }, { - iface:SNDRV_CTL_ELEM_IFACE_MIXER , - name: SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Output Pin", - info: snd_ac97_ymf753_spdif_output_pin_info, - get: snd_ac97_ymf753_spdif_output_pin_get, - put: snd_ac97_ymf753_spdif_output_pin_put, + .iface =SNDRV_CTL_ELEM_IFACE_MIXER , + .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Output Pin", + .info = snd_ac97_ymf753_spdif_output_pin_info, + .get = snd_ac97_ymf753_spdif_output_pin_get, + .put = snd_ac97_ymf753_spdif_output_pin_put, }, AC97_SINGLE(SNDRV_CTL_NAME_IEC958("",NONE,NONE) "Mute", AC97_YMF753_DIT_CTRL2, 2, 1, 1) };
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, Historical Review of Pennsylvania, 1759