[parisc-linux-cvs] Designated initializers for HIL drivers

Helge Deller deller@gmx.de
Sun, 6 Oct 2002 15:19:46 +0200


--Boundary-00=_yhDo97UljOgnvLT
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

On Sunday 06 October 2002 15:22, Helge Deller wrote:
> CVSROOT:	/var/cvs
> Module name:	linux
> Changes by:	deller	02/10/06 07:22:33
>
> Modified files:
> 	drivers/hil    : hil_kbd.c hil_ptr.c hilkbd.c hp_sdc.c
> 	                 hp_sdc_rtc.c
>
> Log message:
> Designated initializers for HIL drivers

--Boundary-00=_yhDo97UljOgnvLT
Content-Type: text/plain;
  charset="iso-8859-1";
  name="diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="diff"

? hil_kbd.c.org
Index: hil_kbd.c
===================================================================
RCS file: /var/cvs/linux/drivers/hil/hil_kbd.c,v
retrieving revision 1.6
diff -u -p -r1.6 hil_kbd.c
--- hil_kbd.c	7 Jul 2002 13:20:47 -0000	1.6
+++ hil_kbd.c	6 Oct 2002 13:20:33 -0000
@@ -431,9 +431,9 @@ static void hil_kbd_connect(struct serio
 
 
 struct serio_dev hil_kbd_serio_dev = {
-	connect:	hil_kbd_connect,
-	disconnect:	hil_kbd_disconnect,
-	interrupt:	hil_kbd_interrupt
+	.connect =	hil_kbd_connect,
+	.disconnect =	hil_kbd_disconnect,
+	.interrupt =	hil_kbd_interrupt
 };
 
 static int __init hil_kbd_init(void)
Index: hil_ptr.c
===================================================================
RCS file: /var/cvs/linux/drivers/hil/hil_ptr.c,v
retrieving revision 1.3
diff -u -p -r1.3 hil_ptr.c
--- hil_ptr.c	4 Jul 2002 22:41:50 -0000	1.3
+++ hil_ptr.c	6 Oct 2002 13:20:33 -0000
@@ -386,9 +386,9 @@ static void hil_ptr_connect(struct serio
 
 
 struct serio_dev hil_ptr_serio_dev = {
-	connect: hil_ptr_connect,
-	disconnect: hil_ptr_disconnect,
-	interrupt: hil_ptr_interrupt
+	.connect =	hil_ptr_connect,
+	.disconnect =	hil_ptr_disconnect,
+	.interrupt =	hil_ptr_interrupt
 };
 
 static int __init hil_ptr_init(void)
Index: hilkbd.c
===================================================================
RCS file: /var/cvs/linux/drivers/hil/hilkbd.c,v
retrieving revision 1.3
diff -u -p -r1.3 hilkbd.c
--- hilkbd.c	9 Jul 2002 18:37:39 -0000	1.3
+++ hilkbd.c	6 Oct 2002 13:20:33 -0000
@@ -348,9 +348,9 @@ static struct parisc_device_id hil_tbl[]
 MODULE_DEVICE_TABLE(parisc, hil_tbl);
 
 static struct parisc_driver hil_driver = {
-	name:		"HIL",
-	id_table:	hil_tbl,
-	probe:		hil_init_chip,
+	.name =		"HIL",
+	.id_table =	hil_tbl,
+	.probe =	hil_init_chip,
 };
 #endif /* CONFIG_PARISC */
 
Index: hp_sdc.c
===================================================================
RCS file: /var/cvs/linux/drivers/hil/hp_sdc.c,v
retrieving revision 1.4
diff -u -p -r1.4 hp_sdc.c
--- hp_sdc.c	30 Jun 2002 15:00:12 -0000	1.4
+++ hp_sdc.c	6 Oct 2002 13:20:33 -0000
@@ -745,10 +745,10 @@ void hp_sdc_kicker (unsigned long data) 
 
 static struct parisc_device_id hp_sdc_tbl[] = {
 	{
-		hw_type:	HPHW_FIO, 
-		hversion_rev:	HVERSION_REV_ANY_ID,
-		hversion:	HVERSION_ANY_ID,
-		sversion:	0x73, 
+		.hw_type =	HPHW_FIO, 
+		.hversion_rev =	HVERSION_REV_ANY_ID,
+		.hversion =	HVERSION_ANY_ID,
+		.sversion =	0x73, 
 	 },
 	{ 0, }
 };
@@ -758,9 +758,9 @@ MODULE_DEVICE_TABLE(parisc, hp_sdc_tbl);
 static int __init hp_sdc_init(struct parisc_device *d);
 
 static struct parisc_driver hp_sdc_driver = {
-	name:		"HP SDC",
-	id_table:	hp_sdc_tbl,
-	probe:		hp_sdc_init,
+	.name =		"HP SDC",
+	.id_table =	hp_sdc_tbl,
+	.probe =	hp_sdc_init,
 };
 
 static int __init hp_sdc_init(struct parisc_device *d)
Index: hp_sdc_rtc.c
===================================================================
RCS file: /var/cvs/linux/drivers/hil/hp_sdc_rtc.c,v
retrieving revision 1.2
diff -u -p -r1.2 hp_sdc_rtc.c
--- hp_sdc_rtc.c	30 Jun 2002 15:00:12 -0000	1.2
+++ hp_sdc_rtc.c	6 Oct 2002 13:20:34 -0000
@@ -674,20 +674,20 @@ static int hp_sdc_rtc_ioctl(struct inode
 }
 
 static struct file_operations hp_sdc_rtc_fops = {
-        owner:          THIS_MODULE,
-        llseek:         hp_sdc_rtc_llseek,
-        read:           hp_sdc_rtc_read,
-        poll:           hp_sdc_rtc_poll,
-        ioctl:          hp_sdc_rtc_ioctl,
-        open:           hp_sdc_rtc_open,
-        release:        hp_sdc_rtc_release,
-        fasync:         hp_sdc_rtc_fasync,
+        .owner =	THIS_MODULE,
+        .llseek =	hp_sdc_rtc_llseek,
+        .read =		hp_sdc_rtc_read,
+        .poll =		hp_sdc_rtc_poll,
+        .ioctl =	hp_sdc_rtc_ioctl,
+        .open =		hp_sdc_rtc_open,
+        .release =	hp_sdc_rtc_release,
+        .fasync =	hp_sdc_rtc_fasync,
 };
 
 static struct miscdevice hp_sdc_rtc_dev = {
-        minor:		RTC_MINOR,
-        name:		"rtc",
-        fops:		&hp_sdc_rtc_fops
+        .minor =	RTC_MINOR,
+        .name =		"rtc",
+        .fops =		&hp_sdc_rtc_fops
 };
 
 static int __init hp_sdc_rtc_init(void)

--Boundary-00=_yhDo97UljOgnvLT--