From bee37f32d47a6c04ff57d18e01cf296607e22b30 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 11 Aug 2009 02:31:14 +0200 Subject: Use proper struct initializers and remove INIT_FIELD() macro Signed-off-by: Juan Quintela --- audio/esdaudio.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'audio/esdaudio.c') diff --git a/audio/esdaudio.c b/audio/esdaudio.c index 0102c5ade0..ff6725e306 100644 --- a/audio/esdaudio.c +++ b/audio/esdaudio.c @@ -581,16 +581,15 @@ static struct audio_pcm_ops qesd_pcm_ops = { }; struct audio_driver esd_audio_driver = { - INIT_FIELD (name = ) "esd", - INIT_FIELD (descr = ) - "http://en.wikipedia.org/wiki/Esound", - INIT_FIELD (options = ) qesd_options, - INIT_FIELD (init = ) qesd_audio_init, - INIT_FIELD (fini = ) qesd_audio_fini, - INIT_FIELD (pcm_ops = ) &qesd_pcm_ops, - INIT_FIELD (can_be_default = ) 0, - INIT_FIELD (max_voices_out = ) INT_MAX, - INIT_FIELD (max_voices_in = ) INT_MAX, - INIT_FIELD (voice_size_out = ) sizeof (ESDVoiceOut), - INIT_FIELD (voice_size_in = ) sizeof (ESDVoiceIn) + .name = "esd", + .descr = "http://en.wikipedia.org/wiki/Esound", + .options = qesd_options, + .init = qesd_audio_init, + .fini = qesd_audio_fini, + .pcm_ops = &qesd_pcm_ops, + .can_be_default = 0, + .max_voices_out = INT_MAX, + .max_voices_in = INT_MAX, + .voice_size_out = sizeof (ESDVoiceOut), + .voice_size_in = sizeof (ESDVoiceIn) }; -- cgit v1.2.1