]> git.hungrycats.org Git - linux/commitdiff
Apply Rusty's C99 initializer patch to input drivers.
authorVojtech Pavlik <vojtech@twilight.ucw.cz>
Thu, 25 Jul 2002 03:47:14 +0000 (05:47 +0200)
committerVojtech Pavlik <vojtech@twilight.ucw.cz>
Thu, 25 Jul 2002 03:47:14 +0000 (05:47 +0200)
Fix cli() breakage in input (gameport) drivers.

54 files changed:
drivers/input/evbug.c
drivers/input/evdev.c
drivers/input/gameport/cs461x.c
drivers/input/gameport/emu10k1-gp.c
drivers/input/gameport/fm801-gp.c
drivers/input/gameport/gameport.c
drivers/input/gameport/ns558.c
drivers/input/gameport/vortex.c
drivers/input/input.c
drivers/input/joydev.c
drivers/input/joystick/a3d.c
drivers/input/joystick/adi.c
drivers/input/joystick/analog.c
drivers/input/joystick/cobra.c
drivers/input/joystick/gf2k.c
drivers/input/joystick/grip.c
drivers/input/joystick/guillemot.c
drivers/input/joystick/iforce/iforce-serio.c
drivers/input/joystick/iforce/iforce-usb.c
drivers/input/joystick/interact.c
drivers/input/joystick/joydump.c
drivers/input/joystick/magellan.c
drivers/input/joystick/sidewinder.c
drivers/input/joystick/spaceball.c
drivers/input/joystick/spaceorb.c
drivers/input/joystick/stinger.c
drivers/input/joystick/tmdc.c
drivers/input/joystick/twidjoy.c
drivers/input/joystick/warrior.c
drivers/input/keybdev.c
drivers/input/keyboard/atkbd.c
drivers/input/keyboard/maple_keyb.c
drivers/input/keyboard/newtonkbd.c
drivers/input/keyboard/sunkbd.c
drivers/input/keyboard/xtkbd.c
drivers/input/mouse/inport.c
drivers/input/mouse/logibm.c
drivers/input/mouse/maplemouse.c
drivers/input/mouse/pc110pad.c
drivers/input/mouse/psmouse.c
drivers/input/mouse/rpcmouse.c
drivers/input/mouse/sermouse.c
drivers/input/mousedev.c
drivers/input/power.c
drivers/input/serio/ct82c710.c
drivers/input/serio/i8042.c
drivers/input/serio/parkbd.c
drivers/input/serio/q40kbd.c
drivers/input/serio/rpckbd.c
drivers/input/serio/serport.c
drivers/input/touchscreen/gunze.c
drivers/input/touchscreen/h3600_ts_input.c
drivers/input/tsdev.c
drivers/input/uinput.c

index e403d4f6d2997e3f0b4f0ea093fc786eae775afe..6746bf274ea9c251811f190d3371d6fa1a484be8 100644 (file)
@@ -80,11 +80,11 @@ static struct input_device_id evbug_ids[] = {
 MODULE_DEVICE_TABLE(input, evbug_ids);
        
 static struct input_handler evbug_handler = {
-       event:          evbug_event,
-       connect:        evbug_connect,
-       disconnect:     evbug_disconnect,
-       name:           "evbug",
-       id_table:       evbug_ids,
+       .event =        evbug_event,
+       .connect =      evbug_connect,
+       .disconnect =   evbug_disconnect,
+       .name =         "evbug",
+       .id_table =     evbug_ids,
 };
 
 int __init evbug_init(void)
index af7abcf21c53a0acd124e4d4bfdb7fca12dabe3f..cafa8e6a0fc08776945f555ed0ba97bee990b7ed 100644 (file)
@@ -399,15 +399,15 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
 }
 
 static struct file_operations evdev_fops = {
-       owner:          THIS_MODULE,
-       read:           evdev_read,
-       write:          evdev_write,
-       poll:           evdev_poll,
-       open:           evdev_open,
-       release:        evdev_release,
-       ioctl:          evdev_ioctl,
-       fasync:         evdev_fasync,
-       flush:          evdev_flush
+       .owner =        THIS_MODULE,
+       .read =         evdev_read,
+       .write =        evdev_write,
+       .poll =         evdev_poll,
+       .open =         evdev_open,
+       .release =      evdev_release,
+       .ioctl =        evdev_ioctl,
+       .fasync =       evdev_fasync,
+       .flush =        evdev_flush
 };
 
 static struct input_handle *evdev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id)
@@ -468,13 +468,13 @@ static struct input_device_id evdev_ids[] = {
 MODULE_DEVICE_TABLE(input, evdev_ids);
 
 static struct input_handler evdev_handler = {
-       event:          evdev_event,
-       connect:        evdev_connect,
-       disconnect:     evdev_disconnect,
-       fops:           &evdev_fops,
-       minor:          EVDEV_MINOR_BASE,
-       name:           "evdev",
-       id_table:       evdev_ids,
+       .event =        evdev_event,
+       .connect =      evdev_connect,
+       .disconnect =   evdev_disconnect,
+       .fops =         &evdev_fops,
+       .minor =        EVDEV_MINOR_BASE,
+       .name =         "evdev",
+       .id_table =     evdev_ids,
 };
 
 static int __init evdev_init(void)
index 3712c51a22731ec4314545fff631ef9f0e7ca68c..ce84db4145f73b1cd2a7bdb1e21120b4648d825a 100644 (file)
@@ -312,10 +312,10 @@ static void __devexit cs461x_pci_remove(struct pci_dev *pdev)
 }
        
 static struct pci_driver cs461x_pci_driver = {
-        name:           "CS461x Gameport",
-        id_table:       cs461x_pci_tbl,
-        probe:          cs461x_pci_probe,
-        remove:         __devexit_p(cs461x_pci_remove),
+        .name =         "CS461x Gameport",
+        .id_table =     cs461x_pci_tbl,
+        .probe =        cs461x_pci_probe,
+        .remove =       __devexit_p(cs461x_pci_remove),
 };
 
 int __init cs461x_init(void)
index 00b9036e3de928ef9a0ebc89910fcfdb22a578e8..41492cb941980a48ecae68d45c16f1caa91e9993 100644 (file)
@@ -110,10 +110,10 @@ static void __devexit emu_remove(struct pci_dev *pdev)
 }
 
 static struct pci_driver emu_driver = {
-        name:           "Emu10k1 Gameport",
-        id_table:       emu_tbl,
-        probe:          emu_probe,
-        remove:         __devexit_p(emu_remove),
+        .name =         "Emu10k1 Gameport",
+        .id_table =     emu_tbl,
+        .probe =        emu_probe,
+        .remove =       __devexit_p(emu_remove),
 };
 
 int __init emu_init(void)
index e3b3e9172920a72ab3e468729053e34f799a836a..c61b602d1088145082f49d0276a71bcf049f57dd 100644 (file)
@@ -137,10 +137,10 @@ static struct pci_device_id fm801_gp_id_table[] __devinitdata = {
 };
 
 static struct pci_driver fm801_gp_driver = {
-       name:           "FM801 GP",
-       id_table:       fm801_gp_id_table,
-       probe:          fm801_gp_probe,
-       remove:         fm801_gp_remove,
+       .name =         "FM801 GP",
+       .id_table =     fm801_gp_id_table,
+       .probe =        fm801_gp_probe,
+       .remove =       fm801_gp_remove,
 };
 
 int __init fm801_gp_init(void)
index 4ade83a2db99fc52c40b6c994f1ae9cf620c392e..ff4195469b31ecf34de2b312533886aeb15aa58e 100644 (file)
@@ -94,13 +94,12 @@ static int gameport_measure_speed(struct gameport *gameport)
        tx = 1 << 30;
 
        for(i = 0; i < 50; i++) {
-               save_flags(flags);      /* Yes, all CPUs */
-               cli();
+               local_irq_save(flags);
                GET_TIME(t1);
                for(t = 0; t < 50; t++) gameport_read(gameport);
                GET_TIME(t2);
                GET_TIME(t3);
-               restore_flags(flags);
+               local_irq_restore(flags);
                udelay(i * 10);
                if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t;
        }
index dee7970bc2ddd5b96b38ebe329a732e039e1b25c..d9c2bb4b709210be997a7cd9c6ecf1cb286f4ea6 100644 (file)
@@ -163,8 +163,8 @@ static struct ns558* ns558_isa_probe(int io, struct ns558 *next)
 #ifdef __ISAPNP__
 
 #define NS558_DEVICE(a,b,c,d)\
-       card_vendor: ISAPNP_ANY_ID, card_device: ISAPNP_ANY_ID,\
-       vendor: ISAPNP_VENDOR(a,b,c), function: ISAPNP_DEVICE(d)
+       .card_vendor = ISAPNP_ANY_ID, card_device: ISAPNP_ANY_ID,\
+       .vendor = ISAPNP_VENDOR(a,b,c), function: ISAPNP_DEVICE(d)
 
 static struct isapnp_device_id pnp_devids[] = {
        { NS558_DEVICE('@','P','@',0x0001) }, /* ALS 100 */
index 6c84e1a4188365450cdfca026ff512988f084875..071c046722bc2f02d6694d5dcf15b45367ae89c5 100644 (file)
@@ -165,10 +165,10 @@ static struct pci_device_id vortex_id_table[] __devinitdata =
  { 0 }};
 
 static struct pci_driver vortex_driver = {
-       name:           "vortex",
-       id_table:       vortex_id_table,
-       probe:          vortex_probe,
-       remove:         vortex_remove,
+       .name =         "vortex",
+       .id_table =     vortex_id_table,
+       .probe =        vortex_probe,
+       .remove =       vortex_remove,
 };
 
 int __init vortex_init(void)
index 3b4c82f91bb2cac73d1bf294e3c360e0be72b17d..054dee43a95c0f4190cb4f158d2e366439347ff7 100644 (file)
@@ -650,8 +650,8 @@ static int input_open_file(struct inode *inode, struct file *file)
 }
 
 static struct file_operations input_fops = {
-       owner: THIS_MODULE,
-       open: input_open_file,
+       .owner = THIS_MODULE,
+       .open = input_open_file,
 };
 
 devfs_handle_t input_register_minor(char *name, int minor, int minor_base)
index 416aace2a2a11d56ddd675aa13a6401e12cb828c..edc1f7a0c53d393a8f80ebe97387aa2158c170d3 100644 (file)
@@ -402,14 +402,14 @@ static int joydev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
 }
 
 static struct file_operations joydev_fops = {
-       owner:          THIS_MODULE,
-       read:           joydev_read,
-       write:          joydev_write,
-       poll:           joydev_poll,
-       open:           joydev_open,
-       release:        joydev_release,
-       ioctl:          joydev_ioctl,
-       fasync:         joydev_fasync,
+       .owner =        THIS_MODULE,
+       .read =         joydev_read,
+       .write =        joydev_write,
+       .poll =         joydev_poll,
+       .open =         joydev_open,
+       .release =      joydev_release,
+       .ioctl =        joydev_ioctl,
+       .fasync =       joydev_fasync,
 };
 
 static struct input_handle *joydev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id)
@@ -505,19 +505,19 @@ static void joydev_disconnect(struct input_handle *handle)
 
 static struct input_device_id joydev_ids[] = {
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT,
-               evbit: { BIT(EV_KEY) | BIT(EV_ABS) },
-               absbit: { BIT(ABS_X) },
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
+               .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
+               .absbit = { BIT(ABS_X) },
        },
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT,
-               evbit: { BIT(EV_KEY) | BIT(EV_ABS) },
-               absbit: { BIT(ABS_WHEEL) },
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
+               .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
+               .absbit = { BIT(ABS_WHEEL) },
        },
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT,
-               evbit: { BIT(EV_KEY) | BIT(EV_ABS) },
-               absbit: { BIT(ABS_THROTTLE) },
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
+               .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
+               .absbit = { BIT(ABS_THROTTLE) },
        },
        { },    /* Terminating entry */
 };
@@ -525,13 +525,13 @@ static struct input_device_id joydev_ids[] = {
 MODULE_DEVICE_TABLE(input, joydev_ids);
 
 static struct input_handler joydev_handler = {
-       event:          joydev_event,
-       connect:        joydev_connect,
-       disconnect:     joydev_disconnect,
-       fops:           &joydev_fops,
-       minor:          JOYDEV_MINOR_BASE,
-       name:           "joydev",
-       id_table:       joydev_ids,
+       .event =        joydev_event,
+       .connect =      joydev_connect,
+       .disconnect =   joydev_disconnect,
+       .fops =         &joydev_fops,
+       .minor =        JOYDEV_MINOR_BASE,
+       .name =         "joydev",
+       .id_table =     joydev_ids,
 };
 
 static int __init joydev_init(void)
index 194a32a297c34f35bdba7556449e7b1d97471f0c..d4ab90dd836488734f967a6ceb66f8cf90eb8173 100644 (file)
@@ -378,8 +378,8 @@ static void a3d_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev a3d_dev = {
-       connect:        a3d_connect,
-       disconnect:     a3d_disconnect,
+       .connect =      a3d_connect,
+       .disconnect =   a3d_disconnect,
 };
 
 int __init a3d_init(void)
index 81a6cbac52097ec922329806260a004850289211..0f5da7f738e98e7e791895403b1690ea56483701 100644 (file)
@@ -541,8 +541,8 @@ static void adi_disconnect(struct gameport *gameport)
  */
 
 static struct gameport_dev adi_dev = {
-       connect:        adi_connect,
-       disconnect:     adi_disconnect,
+       .connect =      adi_connect,
+       .disconnect =   adi_disconnect,
 };
 
 int __init adi_init(void)
index 865ddd450fc2f50438fe2c1026ea876b1b686d4b..0e4f7bd841c419f166120c54fedd95c5099a25bc 100644 (file)
@@ -368,8 +368,7 @@ static void analog_calibrate_timer(struct analog_port *port)
        unsigned int i, t, tx, t1, t2, t3;
        unsigned long flags;
 
-       save_flags(flags);
-       cli();
+       local_irq_save(flags);
        GET_TIME(t1);
 #ifdef FAKE_TIME
        analog_faketime += 830;
@@ -377,19 +376,18 @@ static void analog_calibrate_timer(struct analog_port *port)
        udelay(1000);
        GET_TIME(t2);
        GET_TIME(t3);
-       restore_flags(flags);
+       local_irq_restore(flags);
 
        port->speed = DELTA(t1, t2) - DELTA(t2, t3);
 
        tx = ~0;
 
        for (i = 0; i < 50; i++) {
-               save_flags(flags);
-               cli();
+               local_irq_save(flags);
                GET_TIME(t1);
                for (t = 0; t < 50; t++) { gameport_read(gameport); GET_TIME(t2); }
                GET_TIME(t3);
-               restore_flags(flags);
+               local_irq_restore(flags);
                udelay(i);
                t = DELTA(t1, t2) - DELTA(t2, t3);
                if (t < tx) tx = t;
@@ -737,8 +735,8 @@ static void analog_parse_options(void)
  */
 
 static struct gameport_dev analog_dev = {
-       connect:        analog_connect,
-       disconnect:     analog_disconnect,
+       .connect =      analog_connect,
+       .disconnect =   analog_disconnect,
 };
 
 #ifndef MODULE
index b67d451c7d93f03dedc58d7f2c2473db2e021069..fca2dfb2126cab772eebbc5dbfd0b6a05cd14de5 100644 (file)
@@ -235,8 +235,8 @@ static void cobra_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev cobra_dev = {
-       connect:        cobra_connect,
-       disconnect:     cobra_disconnect,
+       .connect =      cobra_connect,
+       .disconnect =   cobra_disconnect,
 };
 
 int __init cobra_init(void)
index 63e534f7784c89bb4cf0bdcc3152b296daf04cfa..913a99cd3cdb400200882dcfe72d6d681b4de8f0 100644 (file)
@@ -343,8 +343,8 @@ static void gf2k_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev gf2k_dev = {
-       connect:        gf2k_connect,
-       disconnect:     gf2k_disconnect,
+       .connect =      gf2k_connect,
+       .disconnect =   gf2k_disconnect,
 };
 
 int __init gf2k_init(void)
index 0519581c9e34298d8a09c9058262c016bca75fad..ded9a272566e6fe55d90940f18a60ce50934aee6 100644 (file)
@@ -408,8 +408,8 @@ static void grip_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev grip_dev = {
-       connect:        grip_connect,
-       disconnect:     grip_disconnect,
+       .connect =      grip_connect,
+       .disconnect =   grip_disconnect,
 };
 
 int __init grip_init(void)
index bceb8402c14aebd9c21b505a54951222ca6bdfea..a53db244d98ec3edadd0cf4271ab70d1494f1089 100644 (file)
@@ -265,8 +265,8 @@ static void guillemot_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev guillemot_dev = {
-       connect:        guillemot_connect,
-       disconnect:     guillemot_disconnect,
+       .connect =      guillemot_connect,
+       .disconnect =   guillemot_disconnect,
 };
 
 int __init guillemot_init(void)
index 31e21fb431f6bfbd26086a05270408e49c1d5618..1ec51fee215e1e0be6575b823d07ac1eb0269ed0 100644 (file)
@@ -159,8 +159,8 @@ static void iforce_serio_disconnect(struct serio *serio)
 }
 
 struct serio_dev iforce_serio_dev = {
-       write_wakeup:   iforce_serio_write_wakeup,
-       interrupt:      iforce_serio_irq,
-       connect:        iforce_serio_connect,
-       disconnect:     iforce_serio_disconnect,
+       .write_wakeup = iforce_serio_write_wakeup,
+       .interrupt =    iforce_serio_irq,
+       .connect =      iforce_serio_connect,
+       .disconnect =   iforce_serio_disconnect,
 };
index 760534a89f729c16ac40e18139db5c5dc95cad8d..edf0de1d5e53363b0790cb3c9f741a55fdd29fd1 100644 (file)
@@ -206,9 +206,9 @@ static struct usb_device_id iforce_usb_ids [] = {
 MODULE_DEVICE_TABLE (usb, iforce_usb_ids);
 
 struct usb_driver iforce_usb_driver = {
-       owner:          THIS_MODULE,
-       name:           "iforce",
-       probe:          iforce_usb_probe,
-       disconnect:     iforce_usb_disconnect,
-       id_table:       iforce_usb_ids,
+       .owner =        THIS_MODULE,
+       .name =         "iforce",
+       .probe =        iforce_usb_probe,
+       .disconnect =   iforce_usb_disconnect,
+       .id_table =     iforce_usb_ids,
 };
index 307cf12789afaa737cacab7a6fbf101e270c2745..749d012a9a0e7f91bb93299bd0bd5860e0a8b536 100644 (file)
@@ -293,8 +293,8 @@ static void interact_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev interact_dev = {
-       connect:        interact_connect,
-       disconnect:     interact_disconnect,
+       .connect =      interact_connect,
+       .disconnect =   interact_disconnect,
 };
 
 int __init interact_init(void)
index d64493c0cc04d340ba1e00c8865bf14f483efda0..d88de1979999ebf51224b2cdf75532b014fb20a0 100644 (file)
@@ -133,8 +133,8 @@ static void __devexit joydump_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev joydump_dev = {
-       connect:        joydump_connect,
-       disconnect:     joydump_disconnect,
+       .connect =      joydump_connect,
+       .disconnect =   joydump_disconnect,
 };
 
 static int __init joydump_init(void)
index ed7cd36e64c792933f69dcc81e449c44ae5bf0e6..f665ef76f47001ef06f192dee391bf53536110d1 100644 (file)
@@ -192,9 +192,9 @@ static void magellan_connect(struct serio *serio, struct serio_dev *dev)
  */
 
 static struct serio_dev magellan_dev = {
-       interrupt:      magellan_interrupt,
-       connect:        magellan_connect,
-       disconnect:     magellan_disconnect,
+       .interrupt =    magellan_interrupt,
+       .connect =      magellan_connect,
+       .disconnect =   magellan_disconnect,
 };
 
 /*
index d53b852ae5aa250cb5e554a4d222e1307c03a65b..f3f2b0e152aa19f43479f96e5e8b319492709e16 100644 (file)
@@ -743,8 +743,8 @@ static void sw_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev sw_dev = {
-       connect:        sw_connect,
-       disconnect:     sw_disconnect,
+       .connect =      sw_connect,
+       .disconnect =   sw_disconnect,
 };
 
 int __init sw_init(void)
index 8732f85975bef60e096f8fc1d8d578fdb23987d3..07b3ae5189e40a6725c06f01ddd0c462c3680d10 100644 (file)
@@ -263,9 +263,9 @@ static void spaceball_connect(struct serio *serio, struct serio_dev *dev)
  */
 
 static struct serio_dev spaceball_dev = {
-       interrupt:      spaceball_interrupt,
-       connect:        spaceball_connect,
-       disconnect:     spaceball_disconnect,
+       .interrupt =    spaceball_interrupt,
+       .connect =      spaceball_connect,
+       .disconnect =   spaceball_disconnect,
 };
 
 /*
index eae1bdca95900e81522543ed4b5f6cd7bba136ad..3edd004508a880622d6de0ce6ba0ebd44609e903 100644 (file)
@@ -207,9 +207,9 @@ static void spaceorb_connect(struct serio *serio, struct serio_dev *dev)
  */
 
 static struct serio_dev spaceorb_dev = {
-       interrupt:      spaceorb_interrupt,
-       connect:        spaceorb_connect,
-       disconnect:     spaceorb_disconnect,
+       .interrupt =    spaceorb_interrupt,
+       .connect =      spaceorb_connect,
+       .disconnect =   spaceorb_disconnect,
 };
 
 /*
index cd8541983c57c72dead55970c02b632a8328e9a5..4df08be9834828dd93feb870371a5a38172c7679 100644 (file)
@@ -182,9 +182,9 @@ static void stinger_connect(struct serio *serio, struct serio_dev *dev)
  */
 
 static struct serio_dev stinger_dev = {
-       interrupt:      stinger_interrupt,
-       connect:        stinger_connect,
-       disconnect:     stinger_disconnect,
+       .interrupt =    stinger_interrupt,
+       .connect =      stinger_connect,
+       .disconnect =   stinger_disconnect,
 };
 
 /*
index 4c7665cf5d8d824a95402a40a67121300422f870..bf592bdf2c2680ecbaec255a004bab96e98dd129 100644 (file)
@@ -361,8 +361,8 @@ static void tmdc_disconnect(struct gameport *gameport)
 }
 
 static struct gameport_dev tmdc_dev = {
-       connect:        tmdc_connect,
-       disconnect:     tmdc_disconnect,
+       .connect =      tmdc_connect,
+       .disconnect =   tmdc_disconnect,
 };
 
 int __init tmdc_init(void)
index 958dca35e95ffc68df071bf38a2fea18e1b2fd97..597441158b049d9ca0e9fcf1283709cdbe70467b 100644 (file)
@@ -240,9 +240,9 @@ static void twidjoy_connect(struct serio *serio, struct serio_dev *dev)
  */
 
 static struct serio_dev twidjoy_dev = {
-       interrupt:      twidjoy_interrupt,
-       connect:        twidjoy_connect,
-       disconnect:     twidjoy_disconnect,
+       .interrupt =    twidjoy_interrupt,
+       .connect =      twidjoy_connect,
+       .disconnect =   twidjoy_disconnect,
 };
 
 /*
index acc4b16e5f7a592f1957b6fb81152d538427e15c..d9327000384a86e5bf7b08da5de6be6b620f5553 100644 (file)
@@ -194,9 +194,9 @@ static void warrior_connect(struct serio *serio, struct serio_dev *dev)
  */
 
 static struct serio_dev warrior_dev = {
-       interrupt:      warrior_interrupt,
-       connect:        warrior_connect,
-       disconnect:     warrior_disconnect,
+       .interrupt =    warrior_interrupt,
+       .connect =      warrior_connect,
+       .disconnect =   warrior_disconnect,
 };
 
 /*
index c9675191408456190f36b962a598cceaaee5ba55..6655e917b9766bd838d0cdddb42f8c35649f0bb2 100644 (file)
@@ -197,8 +197,8 @@ static void keybdev_disconnect(struct input_handle *handle)
 
 static struct input_device_id keybdev_ids[] = {
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT,
-               evbit: { BIT(EV_KEY) },
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
+               .evbit = { BIT(EV_KEY) },
        },      
        { },    /* Terminating entry */
 };
@@ -206,11 +206,11 @@ static struct input_device_id keybdev_ids[] = {
 MODULE_DEVICE_TABLE(input, keybdev_ids);
        
 static struct input_handler keybdev_handler = {
-       event:          keybdev_event,
-       connect:        keybdev_connect,
-       disconnect:     keybdev_disconnect,
-       name:           "keybdev",
-       id_table:       keybdev_ids,
+       .event =        keybdev_event,
+       .connect =      keybdev_connect,
+       .disconnect =   keybdev_disconnect,
+       .name =         "keybdev",
+       .id_table =     keybdev_ids,
 };
 
 static int __init keybdev_init(void)
index c64b1934dc7a22fa5851c2ffb86875a491c807ff..0b7c3f674a8f7b01629b849456bd7f99a0329d9e 100644 (file)
@@ -523,9 +523,9 @@ static void atkbd_connect(struct serio *serio, struct serio_dev *dev)
 
 
 static struct serio_dev atkbd_dev = {
-       interrupt:      atkbd_interrupt,
-       connect:        atkbd_connect,
-       disconnect:     atkbd_disconnect
+       .interrupt =    atkbd_interrupt,
+       .connect =      atkbd_connect,
+       .disconnect =   atkbd_disconnect
 };
 
 #ifndef MODULE
index bccafd21e02cb324b58adc59a62531547c9b1d13..df5a2d83bd39ef83775ca736e31371f50dafdb8c 100644 (file)
@@ -160,10 +160,10 @@ static void dc_kbd_disconnect(struct maple_device *dev)
 
 
 static struct maple_driver dc_kbd_driver = {
-       function:       MAPLE_FUNC_KEYBOARD,
-       name:           "Dreamcast keyboard",
-       connect:        dc_kbd_connect,
-       disconnect:     dc_kbd_disconnect,
+       .function =     MAPLE_FUNC_KEYBOARD,
+       .name =         "Dreamcast keyboard",
+       .connect =      dc_kbd_connect,
+       .disconnect =   dc_kbd_disconnect,
 };
 
 
index 92cd88bc320899300eb93024d87fecc60c544eb2..d9161dbc8c54818bc3e459ec15ffcda86c66b117 100644 (file)
@@ -129,9 +129,9 @@ void nkbd_disconnect(struct serio *serio)
 }
 
 struct serio_dev nkbd_dev = {
-       interrupt:      nkbd_interrupt,
-       connect:        nkbd_connect,
-       disconnect:     nkbd_disconnect
+       .interrupt =    nkbd_interrupt,
+       .connect =      nkbd_connect,
+       .disconnect =   nkbd_disconnect
 };
 
 int __init nkbd_init(void)
index 2469cd06be303548775536415b536df194a43730..4857ba2fe37246bd93c14430eb3cace8ea22a584 100644 (file)
@@ -294,9 +294,9 @@ static void sunkbd_disconnect(struct serio *serio)
 }
 
 static struct serio_dev sunkbd_dev = {
-       interrupt:      sunkbd_interrupt,
-       connect:        sunkbd_connect,
-       disconnect:     sunkbd_disconnect
+       .interrupt =    sunkbd_interrupt,
+       .connect =      sunkbd_connect,
+       .disconnect =   sunkbd_disconnect
 };
 
 /*
index 8c2b483e372340f26a4bf719ab3cd3232a082d64..d8f6c17edd8e28f03a7ad31122ca09e072d8a316 100644 (file)
@@ -137,9 +137,9 @@ void xtkbd_disconnect(struct serio *serio)
 }
 
 struct serio_dev xtkbd_dev = {
-       interrupt:      xtkbd_interrupt,
-       connect:        xtkbd_connect,
-       disconnect:     xtkbd_disconnect
+       .interrupt =    xtkbd_interrupt,
+       .connect =      xtkbd_connect,
+       .disconnect =   xtkbd_disconnect
 };
 
 int __init xtkbd_init(void)
index bb179d901ff34c07112e418996d64ce0e3f95e92..51fba4dceb6da52d953fc999975d975b47de157f 100644 (file)
@@ -108,13 +108,13 @@ static void inport_close(struct input_dev *dev)
 }
 
 static struct input_dev inport_dev = {
-       evbit:          { BIT(EV_KEY) | BIT(EV_REL) },
-       keybit:         { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
-       relbit:         { BIT(REL_X) | BIT(REL_Y) },
-       open:           inport_open,
-       close:          inport_close,
-       name:           INPORT_NAME,
-       phys:           "isa023c/input0",
+       .evbit  = { BIT(EV_KEY) | BIT(EV_REL) },
+       .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
+       .relbit = { BIT(REL_X) | BIT(REL_Y) },
+       .open   = inport_open,
+       .close  = inport_close,
+       .name   = INPORT_NAME,
+       .phys   = "isa023c/input0",
 };
 
 static void inport_interrupt(int irq, void *dev_id, struct pt_regs *regs)
index 4fab9667ea967c31641f5bde7b06497375213235..afdc1afcc75835bc7f98a68710c164f9cf00f88f 100644 (file)
@@ -98,13 +98,13 @@ static void logibm_close(struct input_dev *dev)
 }
 
 static struct input_dev logibm_dev = {
-       evbit:          { BIT(EV_KEY) | BIT(EV_REL) },
-       keybit:         { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
-       relbit:         { BIT(REL_X) | BIT(REL_Y) },
-       open:           logibm_open,
-       close:          logibm_close,
-       name:           "Logitech bus mouse",
-       phys:           "isa023c/input0",
+       .evbit  = { BIT(EV_KEY) | BIT(EV_REL) },
+       .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
+       .relbit = { BIT(REL_X) | BIT(REL_Y) },
+       .open   = logibm_open,
+       .close  = logibm_close,
+       .name   = "Logitech bus mouse",
+       .phys   = "isa023c/input0",
 };
 
 static void logibm_interrupt(int irq, void *dev_id, struct pt_regs *regs)
index 34d90206a5b8776909e80db3d9f67d8848e717d2..2c434ecaf28674e9031601bed0b01d405d5bb336 100644 (file)
@@ -107,10 +107,10 @@ static void dc_mouse_disconnect(struct maple_device *dev)
 
 
 static struct maple_driver dc_mouse_driver = {
-       function:       MAPLE_FUNC_MOUSE,
-       name:           "Dreamcast mouse",
-       connect:        dc_mouse_connect,
-       disconnect:     dc_mouse_disconnect,
+       .function =     MAPLE_FUNC_MOUSE,
+       .name =         "Dreamcast mouse",
+       .connect =      dc_mouse_connect,
+       .disconnect =   dc_mouse_disconnect,
 };
 
 
index 275e3bb6033c158a5560721c0c635cff006dcd1d..ce4e992c46607687d58bc207030f363fa09e7157 100644 (file)
@@ -95,14 +95,11 @@ static int pc110pad_open(struct input_dev *dev)
        if (pc110pad_used++)
                return 0;
 
-       __save_flags(flags);
-       __cli();
        pc110pad_interrupt(0,0,0);
        pc110pad_interrupt(0,0,0);
        pc110pad_interrupt(0,0,0);
        outb(PC110PAD_ON, pc110pad_io + 2);
        pc110pad_count = 0;
-       __restore_flags(flags);
 
        return 0;
 }
index 716eb9616c6c6d1480cfa5efb77ac46d69b91bbc..ff7a8b0170d813a941eb5768f3c4dfb57f354726 100644 (file)
@@ -613,9 +613,9 @@ static void psmouse_connect(struct serio *serio, struct serio_dev *dev)
 }
 
 static struct serio_dev psmouse_dev = {
-       interrupt:      psmouse_interrupt,
-       connect:        psmouse_connect,
-       disconnect:     psmouse_disconnect
+       .interrupt =    psmouse_interrupt,
+       .connect =      psmouse_connect,
+       .disconnect =   psmouse_disconnect
 };
 
 int __init psmouse_init(void)
index ba0fb7cd81a382deefa8c1b43bfd7d524271c31b..31a892a524606fdb104e3162cb1d208a861713ad 100644 (file)
@@ -36,11 +36,11 @@ MODULE_LICENSE("GPL");
 static short rpcmouse_lastx, rpcmouse_lasty;
 
 static struct input_dev rpcmouse_dev = {
-       evbit:          { BIT(EV_KEY) | BIT(EV_REL) },
-       keybit:         { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
-       relbit:         { BIT(REL_X) | BIT(REL_Y) },
-       name:           "Acorn RiscPC Mouse",
-       phys:           "rpcmouse/input0",
+       .evbit  = { BIT(EV_KEY) | BIT(EV_REL) },
+       .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
+       .relbit = { BIT(REL_X) | BIT(REL_Y) },
+       .name   = "Acorn RiscPC Mouse",
+       .phys   = "rpcmouse/input0",
 };
 
 static void rpcmouse_irq(int irq, void *dev_id, struct pt_regs *regs)
index 6069ea2235d3f112f30aa4d6769b8a9fb4c5e50b..fded500e04a946062e60ff1951db0149f80b65b8 100644 (file)
@@ -279,9 +279,9 @@ static void sermouse_connect(struct serio *serio, struct serio_dev *dev)
 }
 
 static struct serio_dev sermouse_dev = {
-       interrupt:      sermouse_interrupt,
-       connect:        sermouse_connect,
-       disconnect:     sermouse_disconnect
+       .interrupt =    sermouse_interrupt,
+       .connect =      sermouse_connect,
+       .disconnect =   sermouse_disconnect
 };
 
 int __init sermouse_init(void)
index a5b4152e2c974e8f17424814b6e616e80e75b4cc..cb81a373f3c07bfda6de5e6217dffdedbc872f8e 100644 (file)
@@ -414,13 +414,13 @@ static unsigned int mousedev_poll(struct file *file, poll_table *wait)
 }
 
 struct file_operations mousedev_fops = {
-       owner:          THIS_MODULE,
-       read:           mousedev_read,
-       write:          mousedev_write,
-       poll:           mousedev_poll,
-       open:           mousedev_open,
-       release:        mousedev_release,
-       fasync:         mousedev_fasync,
+       .owner =        THIS_MODULE,
+       .read =         mousedev_read,
+       .write =        mousedev_write,
+       .poll =         mousedev_poll,
+       .open =         mousedev_open,
+       .release =      mousedev_release,
+       .fasync =       mousedev_fasync,
 };
 
 static struct input_handle *mousedev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id)
@@ -477,17 +477,17 @@ static void mousedev_disconnect(struct input_handle *handle)
 
 static struct input_device_id mousedev_ids[] = {
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT,
-               evbit: { BIT(EV_KEY) | BIT(EV_REL) },
-               keybit: { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) },
-               relbit: { BIT(REL_X) | BIT(REL_Y) },
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT,
+               .evbit = { BIT(EV_KEY) | BIT(EV_REL) },
+               .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) },
+               .relbit = { BIT(REL_X) | BIT(REL_Y) },
        },      /* A mouse like device, at least one button, two relative axes */
 
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_ABSBIT,
-               evbit: { BIT(EV_KEY) | BIT(EV_ABS) },
-               keybit: { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) },
-               absbit: { BIT(ABS_X) | BIT(ABS_Y) },
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_ABSBIT,
+               .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
+               .keybit = { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) },
+               .absbit = { BIT(ABS_X) | BIT(ABS_Y) },
        },      /* A tablet like device, at least touch detection, two absolute axes */
 
        { },    /* Terminating entry */
@@ -496,13 +496,13 @@ static struct input_device_id mousedev_ids[] = {
 MODULE_DEVICE_TABLE(input, mousedev_ids);
        
 static struct input_handler mousedev_handler = {
-       event:          mousedev_event,
-       connect:        mousedev_connect,
-       disconnect:     mousedev_disconnect,
-       fops:           &mousedev_fops,
-       minor:          MOUSEDEV_MINOR_BASE,
-       name:           "mousedev",
-       id_table:       mousedev_ids,
+       .event =        mousedev_event,
+       .connect =      mousedev_connect,
+       .disconnect =   mousedev_disconnect,
+       .fops =         &mousedev_fops,
+       .minor =        MOUSEDEV_MINOR_BASE,
+       .name =         "mousedev",
+       .id_table =     mousedev_ids,
 };
 
 #ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
index 84af6b392dd5a789eb5e65fd5d4213f23b56207e..793f4313fd24a32c9138f84abe2e6d9731cc2e63 100644 (file)
@@ -136,18 +136,18 @@ static void power_disconnect(struct input_handle *handle)
 
 static struct input_device_id power_ids[] = {
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT,
-               evbit: { BIT(EV_KEY) },
-               keybit: { [LONG(KEY_SUSPEND)] = BIT(KEY_SUSPEND) }
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT,
+               .evbit = { BIT(EV_KEY) },
+               .keybit = { [LONG(KEY_SUSPEND)] = BIT(KEY_SUSPEND) }
        },      
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT,
-               evbit: { BIT(EV_KEY) },
-               keybit: { [LONG(KEY_POWER)] = BIT(KEY_POWER) }
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT,
+               .evbit = { BIT(EV_KEY) },
+               .keybit = { [LONG(KEY_POWER)] = BIT(KEY_POWER) }
        },      
        {
-               flags: INPUT_DEVICE_ID_MATCH_EVBIT,
-               evbit: { BIT(EV_PWR) },
+               .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
+               .evbit = { BIT(EV_PWR) },
        },      
        { },    /* Terminating entry */
 };
@@ -155,11 +155,11 @@ static struct input_device_id power_ids[] = {
 MODULE_DEVICE_TABLE(input, power_ids);
        
 static struct input_handler power_handler = {
-       event:          power_event,
-       connect:        power_connect,
-       disconnect:     power_disconnect,
-       name:           "power",
-       id_table:       power_ids,
+       .event =        power_event,
+       .connect =      power_connect,
+       .disconnect =   power_disconnect,
+       .name =         "power",
+       .id_table =     power_ids,
 };
 
 static int __init power_init(void)
index 7bb79a2ee2ea8a46f8099e3db25f231a2e58002a..fa9527f96095090a83324ed7a3672dbf64899055 100644 (file)
@@ -141,12 +141,12 @@ static int ct82c710_write(struct serio *port, unsigned char c)
 
 static struct serio ct82c710_port =
 {
-       type:   SERIO_8042,
-       name:   ct82c710_name,
-       phys:   ct82c710_phys,
-       write:  ct82c710_write,
-       open:   ct82c710_open,
-       close:  ct82c710_close,
+       .type   = SERIO_8042,
+       .name   = ct82c710_name,
+       .phys   = ct82c710_phys,
+       .write  = ct82c710_write,
+       .open   = ct82c710_open,
+       .close  = ct82c710_close,
 };
 
 /*
index 7aeb872f9e4dae1b0ca988e49d21f9066e5a058a..dc574db0f933d97900463315608c3de18ad04618 100644 (file)
@@ -296,41 +296,41 @@ static void i8042_close(struct serio *port)
  */
 
 static struct i8042_values i8042_kbd_values = {
-       irq:            I8042_KBD_IRQ,
-       irqen:          I8042_CTR_KBDINT,
-       disable:        I8042_CTR_KBDDIS,
-       name:           "KBD",
-       exists:         0,
+       .irq =          I8042_KBD_IRQ,
+       .irqen =        I8042_CTR_KBDINT,
+       .disable =      I8042_CTR_KBDDIS,
+       .name =         "KBD",
+       .exists =       0,
 };
 
 static struct serio i8042_kbd_port =
 {
-       type:           SERIO_8042,
-       write:          i8042_kbd_write,
-       open:           i8042_open,
-       close:          i8042_close,
-       driver:         &i8042_kbd_values,
-       name:           "i8042 Kbd Port",
-       phys:           I8042_KBD_PHYS_DESC,
+       .type =         SERIO_8042,
+       .write =        i8042_kbd_write,
+       .open =         i8042_open,
+       .close =        i8042_close,
+       .driver =       &i8042_kbd_values,
+       .name =         "i8042 Kbd Port",
+       .phys =         I8042_KBD_PHYS_DESC,
 };
 
 static struct i8042_values i8042_aux_values = {
-       irq:            I8042_AUX_IRQ,
-       irqen:          I8042_CTR_AUXINT,
-       disable:        I8042_CTR_AUXDIS,
-       name:           "AUX",
-       exists:         0,
+       .irq =          I8042_AUX_IRQ,
+       .irqen =        I8042_CTR_AUXINT,
+       .disable =      I8042_CTR_AUXDIS,
+       .name =         "AUX",
+       .exists =       0,
 };
 
 static struct serio i8042_aux_port =
 {
-       type:           SERIO_8042,
-       write:          i8042_aux_write,
-       open:           i8042_open,
-       close:          i8042_close,
-       driver:         &i8042_aux_values,
-       name:           "i8042 Aux Port",
-       phys:           I8042_AUX_PHYS_DESC,
+       .type =         SERIO_8042,
+       .write =        i8042_aux_write,
+       .open =         i8042_open,
+       .close =        i8042_close,
+       .driver =       &i8042_aux_values,
+       .name =         "i8042 Aux Port",
+       .phys =         I8042_AUX_PHYS_DESC,
 };
 
 /*
index d957f5a056e061853326a4504ecd269b395d37ad..9f2858eb2f32b9d2aae5193e496054c5f17840bd 100644 (file)
@@ -97,11 +97,11 @@ static void parkbd_close(struct serio *port)
 
 static struct serio parkbd_port =
 {
-       write:  parkbd_write,
-       open:   parkbd_open,
-       close:  parkbd_close,
-       name:   parkbd_name,
-       phys:   parkbd_phys,
+       .write  = parkbd_write,
+       .open   = parkbd_open,
+       .close  = parkbd_close,
+       .name   = parkbd_name,
+       .phys   = parkbd_phys,
 };
 
 static void parkbd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
index 810b8ed4f7f4b44e316530793561fccfaae00e1d..add324e409152b591aa6a8e99afc86cfd8a597b0 100644 (file)
@@ -49,10 +49,10 @@ MODULE_LICENSE("GPL");
 
 static struct serio q40kbd_port =
 {
-       type:   SERIO_8042,
-       write:  NULL,
-       name:   "Q40 PS/2 kbd port",
-       phys:   "isa0060/serio0",
+       .type   = SERIO_8042,
+       .write  = NULL,
+       .name   = "Q40 PS/2 kbd port",
+       .phys   = "isa0060/serio0",
 };
 
 static void q40kbd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
index 744098811cf6cd2adc33c7eaeb7ddd3ef0e71a4c..a5f7c75d32d70e20be96d9c52601f0a238452d20 100644 (file)
@@ -55,10 +55,10 @@ static inline void rpckbd_write(unsigned char val)
 
 static struct serio rpckbd_port =
 {
-       type:   SERIO_8042,
-       write:  rpckbd_write,
-       name:   "RiscPC PS/2 kbd port",
-       phys:   "rpckbd/serio0",
+       .type   = SERIO_8042,
+       .write  = rpckbd_write,
+       .name   = "RiscPC PS/2 kbd port",
+       .phys   = "rpckbd/serio0",
 };
 
 static void rpckbd_rx(int irq, void *dev_id, struct pt_regs *regs)
index 4885a822a2701cc48b4fe2c67985309bb4fd5021..b396a6b540f48d95d8356c18dcd6d1b4aa298cd9 100644 (file)
@@ -216,14 +216,14 @@ static void serport_ldisc_write_wakeup(struct tty_struct * tty)
  */
 
 static struct tty_ldisc serport_ldisc = {
-       name:           "input",
-       open:           serport_ldisc_open,
-       close:          serport_ldisc_close,
-       read:           serport_ldisc_read,
-       ioctl:          serport_ldisc_ioctl,
-       receive_buf:    serport_ldisc_receive,
-       receive_room:   serport_ldisc_room,
-       write_wakeup:   serport_ldisc_write_wakeup
+       .name =         "input",
+       .open =         serport_ldisc_open,
+       .close =        serport_ldisc_close,
+       .read =         serport_ldisc_read,
+       .ioctl =        serport_ldisc_ioctl,
+       .receive_buf =  serport_ldisc_receive,
+       .receive_room = serport_ldisc_room,
+       .write_wakeup = serport_ldisc_write_wakeup
 };
 
 /*
index 71fbce1b72500c387b4b6d1f257a0d3178eef51a..268ea18b5e63f8c13a8d4965d723feb9220b90c9 100644 (file)
@@ -154,9 +154,9 @@ static void gunze_connect(struct serio *serio, struct serio_dev *dev)
  */
 
 static struct serio_dev gunze_dev = {
-       interrupt:      gunze_interrupt,
-       connect:        gunze_connect,
-       disconnect:     gunze_disconnect,
+       .interrupt =    gunze_interrupt,
+       .connect =      gunze_connect,
+       .disconnect =   gunze_disconnect,
 };
 
 /*
index 7995b5c1b99ae5b763a3f1910cd3c77af5570320..5f93359a578c4ffca3c44c0102e46175a188c106 100644 (file)
@@ -461,9 +461,9 @@ static void h3600ts_disconnect(struct serio *serio)
  */
 
 static struct serio_dev h3600ts_dev = {
-       interrupt:      h3600ts_interrupt,
-       connect:        h3600ts_connect,
-       disconnect:     h3600ts_disconnect,
+       .interrupt =    h3600ts_interrupt,
+       .connect =      h3600ts_connect,
+       .disconnect =   h3600ts_disconnect,
 };
 
 /*
index 50d238711aabc0db9c89d5291cc1ef2ab5c76701..47d44139cfb96601309126c01a04a7cb15eeb57a 100644 (file)
@@ -218,13 +218,13 @@ static int tsdev_ioctl(struct inode *inode, struct file *file,
 }
 
 struct file_operations tsdev_fops = {
-       owner:          THIS_MODULE,
-       open:           tsdev_open,
-       release:        tsdev_release,
-       read:           tsdev_read,
-       poll:           tsdev_poll,
-       fasync:         tsdev_fasync,
-       ioctl:          tsdev_ioctl,
+       .owner =        THIS_MODULE,
+       .open =         tsdev_open,
+       .release =      tsdev_release,
+       .read =         tsdev_read,
+       .poll =         tsdev_poll,
+       .fasync =       tsdev_fasync,
+       .ioctl =        tsdev_ioctl,
 };
 
 static void tsdev_event(struct input_handle *handle, unsigned int type,
@@ -411,13 +411,13 @@ static struct input_device_id tsdev_ids[] = {
 MODULE_DEVICE_TABLE(input, tsdev_ids);
 
 static struct input_handler tsdev_handler = {
-       event:          tsdev_event,
-       connect:        tsdev_connect,
-       disconnect:     tsdev_disconnect,
-       fops:           &tsdev_fops,
-       minor:          TSDEV_MINOR_BASE,
-       name:           "tsdev",
-       id_table:       tsdev_ids,
+       .event =        tsdev_event,
+       .connect =      tsdev_connect,
+       .disconnect =   tsdev_disconnect,
+       .fops =         &tsdev_fops,
+       .minor =        TSDEV_MINOR_BASE,
+       .name =         "tsdev",
+       .id_table =     tsdev_ids,
 };
 
 static int __init tsdev_init(void)
index 29a8ce48f13099d90620734607b4e3d38127ee9b..67b51b7f9cfe64987d9a918d58ac08823758f259 100644 (file)
@@ -351,20 +351,20 @@ static int uinput_ioctl(struct inode *inode, struct file *file, unsigned int cmd
 }
 
 struct file_operations uinput_fops = {
-       owner:          THIS_MODULE,
-       open:           uinput_open,
-       release:        uinput_close,
-       read:           uinput_read,
-       write:          uinput_write,
-       poll:           uinput_poll,
+       .owner =        THIS_MODULE,
+       .open =         uinput_open,
+       .release =      uinput_close,
+       .read =         uinput_read,
+       .write =        uinput_write,
+       .poll =         uinput_poll,
 //     fasync:         uinput_fasync,
-       ioctl:          uinput_ioctl,
+       .ioctl =        uinput_ioctl,
 };
 
 static struct miscdevice uinput_misc = {
-       fops:           &uinput_fops,
-       minor:          UINPUT_MINOR,
-       name:           UINPUT_NAME,
+       .fops =         &uinput_fops,
+       .minor =        UINPUT_MINOR,
+       .name =         UINPUT_NAME,
 };
 
 static int __init uinput_init(void)