Update of /cvsroot/gc-linux/linux/drivers/input
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24232/drivers/input
Modified Files:
gcn-si.c
Log Message:
Moved the order of setting the idev.name variable so that it is set before the call to input_register_device. Added a default handler in one of the switch statements to remove a compiler warning.
Index: gcn-si.c
===================================================================
RCS file: /cvsroot/gc-linux/linux/drivers/input/gcn-si.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gcn-si.c 15 Nov 2004 01:19:59 -0000 1.4
+++ gcn-si.c 15 Nov 2004 04:11:40 -0000 1.5
@@ -412,7 +412,8 @@
port[i].idev.open = gcn_si_open;
port[i].idev.close = gcn_si_close;
port[i].idev.private = (unsigned int *)i;
-
+ port[i].idev.name = port[i].name;
+
switch (port[i].id) {
case CTL_PAD:
set_bit(EV_KEY, port[i].idev.evbit);
@@ -497,8 +498,10 @@
input_register_device(&port[i].idev);
break;
+ default:
+ /* this is here to avoid compiler warnings */
+ break;
}
- port[i].idev.name = port[i].name;
si_printk(KERN_INFO, "Port %d: %s\n", i, port[i].name);
}
|