linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] C99 initializers for drivers/media/video
@ 2003-04-22 15:51 Art Haas
  0 siblings, 0 replies; 2+ messages in thread
From: Art Haas @ 2003-04-22 15:51 UTC (permalink / raw)
  To: linux-kernel, Gerd Knorr, video4linux-list; +Cc: Linus Torvalds

Hi.

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

Art Haas

===== drivers/media/video/bttv-cards.c 1.16 vs edited =====
--- 1.16/drivers/media/video/bttv-cards.c	Tue Mar 18 11:00:00 2003
+++ edited/drivers/media/video/bttv-cards.c	Wed Apr  2 07:11:12 2003
@@ -1173,7 +1173,7 @@
 	.tuner_type     = -1,
 	.pll            = PLL_28,
 	.muxsel         = { 2 },
-	gpiomask:       0
+	.gpiomask       = 0
 },{
         /* Tomasz Pyra <hellfire@sedez.iq.pl> */
         .name           = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)",
@@ -1260,7 +1260,7 @@
 },{
         .name           = "Powercolor MTV878/ MTV878R/ MTV878F",
         .video_inputs   = 3,
-        audio_inputs:   2, 
+        .audio_inputs   = 2, 
 	.tuner		= 0,
         .svhs           = 2,
         .gpiomask       = 0x1C800F,  // Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset
@@ -1300,7 +1300,7 @@
 },{
         .name           = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF",
         .video_inputs   = 4,
-        audio_inputs:   3, 
+        .audio_inputs   = 3, 
         .tuner          = 0,
         .svhs           = 2,
         .gpiomask       = 7,
===== drivers/media/video/bttv-driver.c 1.27 vs edited =====
--- 1.27/drivers/media/video/bttv-driver.c	Thu Mar 13 08:26:40 2003
+++ edited/drivers/media/video/bttv-driver.c	Wed Apr  2 07:10:09 2003
@@ -2786,8 +2786,8 @@
 static struct video_device bttv_video_template =
 {
 	.name     = "UNSET",
-	type:     VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_OVERLAY|
-	          VID_TYPE_CLIPPING|VID_TYPE_SCALES,
+	.type     = VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_OVERLAY|
+	            VID_TYPE_CLIPPING|VID_TYPE_SCALES,
 	.hardware = VID_HARDWARE_BT848,
 	.fops     = &bttv_fops,
 	.minor    = -1,
===== drivers/media/video/tvaudio.c 1.16 vs edited =====
--- 1.16/drivers/media/video/tvaudio.c	Sun Mar 23 01:17:51 2003
+++ edited/drivers/media/video/tvaudio.c	Wed Apr  2 07:11:37 2003
@@ -1319,7 +1319,7 @@
 			     PIC16C54_MISC_SND_NOTMUTE},
 		.inputmute  = PIC16C54_MISC_SND_MUTE,
 	},
-	{ name: NULL } /* EOF */
+	{ .name = NULL } /* EOF */
 };
 
 
-- 
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] C99 initializers for drivers/media/video
@ 2002-11-30 17:50 Art Haas
  0 siblings, 0 replies; 2+ messages in thread
From: Art Haas @ 2002-11-30 17:50 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Hi.

Here's a set of patches for switching drivers/media/video to use C99
initializers. The set is about 110K uncompressed, so it sent as
compressed attachment.

Patched files:
adv7175.c
bttv-cards.c
bttv-driver.c
bttv-if.c
bttv-vbi.c
bw-qcam.c
c-qcam.c
cpia.c
cpia_usb.c
msp3400.c
planb.c
pms.c
saa5249.c
stradis.c
tuner.c
tvaudio.c
tvmixer.c
video-buf.c
videodev.c
vino.c
w9966.c
zr36067.c
zr36120.c

Art Haas

-- 
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

[-- Attachment #2: media_video.diff.gz --]
[-- Type: application/octet-stream, Size: 17386 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-22 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-22 15:51 [PATCH] C99 initializers for drivers/media/video Art Haas
  -- strict thread matches above, loose matches on Subject: below --
2002-11-30 17:50 Art Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).