Skip to contentSkip to conversation

C99 initializers for sound/

PATCH New Art Haas 1 participant 1 message Apr 28, 2003 Sound

lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 C99 initializers for sound/

Hi.

Here are three patches converting files in sound/ to use C99 initializers. The patches are against the current BK.

Art Haas

===== sound/oss/cs46xx.c 1.28 vs edited =====

sound/oss/cs46xx.c +3 -3
@@ -1934,7 +1934,7 @@
  *   Midi file operations struct.
  */
 static /*const*/ struct file_operations cs_midi_fops = {
-	CS_OWNER	CS_THIS_MODULE
+	.owner		= THIS_MODULE
 	.llseek		= no_llseek,
 	.read		= cs_midi_read,
 	.write		= cs_midi_write,
@@ -3818,7 +3818,7 @@
 }
 
 static /*const*/ struct file_operations cs461x_fops = {
-	CS_OWNER	CS_THIS_MODULE
+	.owner		= THIS_MODULE
 	.llseek		= no_llseek,
 	.read		= cs_read,
 	.write		= cs_write,
@@ -4225,7 +4225,7 @@
 }
 
 static /*const*/ struct file_operations cs_mixer_fops = {
-	CS_OWNER	CS_THIS_MODULE
+	.owner		= THIS_MODULE
 	.llseek		= no_llseek,
 	.ioctl		= cs_ioctl_mixdev,
 	.open		= cs_open_mixdev,

===== sound/oss/sb_card.h 1.3 vs edited =====

sound/oss/sb_card.h +66 -66

187 lines not on this page · raw message

===== sound/pci/rme9652/hdsp.c 1.17 vs edited =====

sound/pci/rme9652/hdsp.c +2 -2
@@ -3526,7 +3526,7 @@
 		snd_interval_t t = {
 			.min = hdsp->ds_channels,
 			.max = hdsp->ds_channels,
-			integer: 1,
+			.integer = 1,
 		};
 		return snd_interval_refine(c, &t);
 	} else if (r->max < 64000) {
@@ -3550,7 +3550,7 @@
 		snd_interval_t t = {
 			.min = 32000,
 			.max = 48000,
-			integer: 1,
+			.integer = 1,
 		};
 		return snd_interval_refine(r, &t);
 	} else if (c->max <= hdsp->ds_channels) {
Signature · 4 lines
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
 -- Theodore Roosevelt, Kansas City Star, 1918