Commit 0c9c808e authored by Vojtech Pavlik's avatar Vojtech Pavlik

Apply Rusty's C99 initializer patch to input drivers.

Fix cli() breakage in input (gameport) drivers.
parent a2ea21bb
...@@ -80,11 +80,11 @@ static struct input_device_id evbug_ids[] = { ...@@ -80,11 +80,11 @@ static struct input_device_id evbug_ids[] = {
MODULE_DEVICE_TABLE(input, evbug_ids); MODULE_DEVICE_TABLE(input, evbug_ids);
static struct input_handler evbug_handler = { static struct input_handler evbug_handler = {
event: evbug_event, .event = evbug_event,
connect: evbug_connect, .connect = evbug_connect,
disconnect: evbug_disconnect, .disconnect = evbug_disconnect,
name: "evbug", .name = "evbug",
id_table: evbug_ids, .id_table = evbug_ids,
}; };
int __init evbug_init(void) int __init evbug_init(void)
......
...@@ -399,15 +399,15 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -399,15 +399,15 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
} }
static struct file_operations evdev_fops = { static struct file_operations evdev_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
read: evdev_read, .read = evdev_read,
write: evdev_write, .write = evdev_write,
poll: evdev_poll, .poll = evdev_poll,
open: evdev_open, .open = evdev_open,
release: evdev_release, .release = evdev_release,
ioctl: evdev_ioctl, .ioctl = evdev_ioctl,
fasync: evdev_fasync, .fasync = evdev_fasync,
flush: evdev_flush .flush = evdev_flush
}; };
static struct input_handle *evdev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id) 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[] = { ...@@ -468,13 +468,13 @@ static struct input_device_id evdev_ids[] = {
MODULE_DEVICE_TABLE(input, evdev_ids); MODULE_DEVICE_TABLE(input, evdev_ids);
static struct input_handler evdev_handler = { static struct input_handler evdev_handler = {
event: evdev_event, .event = evdev_event,
connect: evdev_connect, .connect = evdev_connect,
disconnect: evdev_disconnect, .disconnect = evdev_disconnect,
fops: &evdev_fops, .fops = &evdev_fops,
minor: EVDEV_MINOR_BASE, .minor = EVDEV_MINOR_BASE,
name: "evdev", .name = "evdev",
id_table: evdev_ids, .id_table = evdev_ids,
}; };
static int __init evdev_init(void) static int __init evdev_init(void)
......
...@@ -312,10 +312,10 @@ static void __devexit cs461x_pci_remove(struct pci_dev *pdev) ...@@ -312,10 +312,10 @@ static void __devexit cs461x_pci_remove(struct pci_dev *pdev)
} }
static struct pci_driver cs461x_pci_driver = { static struct pci_driver cs461x_pci_driver = {
name: "CS461x Gameport", .name = "CS461x Gameport",
id_table: cs461x_pci_tbl, .id_table = cs461x_pci_tbl,
probe: cs461x_pci_probe, .probe = cs461x_pci_probe,
remove: __devexit_p(cs461x_pci_remove), .remove = __devexit_p(cs461x_pci_remove),
}; };
int __init cs461x_init(void) int __init cs461x_init(void)
......
...@@ -110,10 +110,10 @@ static void __devexit emu_remove(struct pci_dev *pdev) ...@@ -110,10 +110,10 @@ static void __devexit emu_remove(struct pci_dev *pdev)
} }
static struct pci_driver emu_driver = { static struct pci_driver emu_driver = {
name: "Emu10k1 Gameport", .name = "Emu10k1 Gameport",
id_table: emu_tbl, .id_table = emu_tbl,
probe: emu_probe, .probe = emu_probe,
remove: __devexit_p(emu_remove), .remove = __devexit_p(emu_remove),
}; };
int __init emu_init(void) int __init emu_init(void)
......
...@@ -137,10 +137,10 @@ static struct pci_device_id fm801_gp_id_table[] __devinitdata = { ...@@ -137,10 +137,10 @@ static struct pci_device_id fm801_gp_id_table[] __devinitdata = {
}; };
static struct pci_driver fm801_gp_driver = { static struct pci_driver fm801_gp_driver = {
name: "FM801 GP", .name = "FM801 GP",
id_table: fm801_gp_id_table, .id_table = fm801_gp_id_table,
probe: fm801_gp_probe, .probe = fm801_gp_probe,
remove: fm801_gp_remove, .remove = fm801_gp_remove,
}; };
int __init fm801_gp_init(void) int __init fm801_gp_init(void)
......
...@@ -94,13 +94,12 @@ static int gameport_measure_speed(struct gameport *gameport) ...@@ -94,13 +94,12 @@ static int gameport_measure_speed(struct gameport *gameport)
tx = 1 << 30; tx = 1 << 30;
for(i = 0; i < 50; i++) { for(i = 0; i < 50; i++) {
save_flags(flags); /* Yes, all CPUs */ local_irq_save(flags);
cli();
GET_TIME(t1); GET_TIME(t1);
for(t = 0; t < 50; t++) gameport_read(gameport); for(t = 0; t < 50; t++) gameport_read(gameport);
GET_TIME(t2); GET_TIME(t2);
GET_TIME(t3); GET_TIME(t3);
restore_flags(flags); local_irq_restore(flags);
udelay(i * 10); udelay(i * 10);
if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t; if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t;
} }
......
...@@ -163,8 +163,8 @@ static struct ns558* ns558_isa_probe(int io, struct ns558 *next) ...@@ -163,8 +163,8 @@ static struct ns558* ns558_isa_probe(int io, struct ns558 *next)
#ifdef __ISAPNP__ #ifdef __ISAPNP__
#define NS558_DEVICE(a,b,c,d)\ #define NS558_DEVICE(a,b,c,d)\
card_vendor: ISAPNP_ANY_ID, card_device: ISAPNP_ANY_ID,\ .card_vendor = ISAPNP_ANY_ID, card_device: ISAPNP_ANY_ID,\
vendor: ISAPNP_VENDOR(a,b,c), function: ISAPNP_DEVICE(d) .vendor = ISAPNP_VENDOR(a,b,c), function: ISAPNP_DEVICE(d)
static struct isapnp_device_id pnp_devids[] = { static struct isapnp_device_id pnp_devids[] = {
{ NS558_DEVICE('@','P','@',0x0001) }, /* ALS 100 */ { NS558_DEVICE('@','P','@',0x0001) }, /* ALS 100 */
......
...@@ -165,10 +165,10 @@ static struct pci_device_id vortex_id_table[] __devinitdata = ...@@ -165,10 +165,10 @@ static struct pci_device_id vortex_id_table[] __devinitdata =
{ 0 }}; { 0 }};
static struct pci_driver vortex_driver = { static struct pci_driver vortex_driver = {
name: "vortex", .name = "vortex",
id_table: vortex_id_table, .id_table = vortex_id_table,
probe: vortex_probe, .probe = vortex_probe,
remove: vortex_remove, .remove = vortex_remove,
}; };
int __init vortex_init(void) int __init vortex_init(void)
......
...@@ -650,8 +650,8 @@ static int input_open_file(struct inode *inode, struct file *file) ...@@ -650,8 +650,8 @@ static int input_open_file(struct inode *inode, struct file *file)
} }
static struct file_operations input_fops = { static struct file_operations input_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: input_open_file, .open = input_open_file,
}; };
devfs_handle_t input_register_minor(char *name, int minor, int minor_base) devfs_handle_t input_register_minor(char *name, int minor, int minor_base)
......
...@@ -402,14 +402,14 @@ static int joydev_ioctl(struct inode *inode, struct file *file, unsigned int cmd ...@@ -402,14 +402,14 @@ static int joydev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
} }
static struct file_operations joydev_fops = { static struct file_operations joydev_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
read: joydev_read, .read = joydev_read,
write: joydev_write, .write = joydev_write,
poll: joydev_poll, .poll = joydev_poll,
open: joydev_open, .open = joydev_open,
release: joydev_release, .release = joydev_release,
ioctl: joydev_ioctl, .ioctl = joydev_ioctl,
fasync: joydev_fasync, .fasync = joydev_fasync,
}; };
static struct input_handle *joydev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id) 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) ...@@ -505,19 +505,19 @@ static void joydev_disconnect(struct input_handle *handle)
static struct input_device_id joydev_ids[] = { static struct input_device_id joydev_ids[] = {
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
evbit: { BIT(EV_KEY) | BIT(EV_ABS) }, .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
absbit: { BIT(ABS_X) }, .absbit = { BIT(ABS_X) },
}, },
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
evbit: { BIT(EV_KEY) | BIT(EV_ABS) }, .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
absbit: { BIT(ABS_WHEEL) }, .absbit = { BIT(ABS_WHEEL) },
}, },
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
evbit: { BIT(EV_KEY) | BIT(EV_ABS) }, .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
absbit: { BIT(ABS_THROTTLE) }, .absbit = { BIT(ABS_THROTTLE) },
}, },
{ }, /* Terminating entry */ { }, /* Terminating entry */
}; };
...@@ -525,13 +525,13 @@ static struct input_device_id joydev_ids[] = { ...@@ -525,13 +525,13 @@ static struct input_device_id joydev_ids[] = {
MODULE_DEVICE_TABLE(input, joydev_ids); MODULE_DEVICE_TABLE(input, joydev_ids);
static struct input_handler joydev_handler = { static struct input_handler joydev_handler = {
event: joydev_event, .event = joydev_event,
connect: joydev_connect, .connect = joydev_connect,
disconnect: joydev_disconnect, .disconnect = joydev_disconnect,
fops: &joydev_fops, .fops = &joydev_fops,
minor: JOYDEV_MINOR_BASE, .minor = JOYDEV_MINOR_BASE,
name: "joydev", .name = "joydev",
id_table: joydev_ids, .id_table = joydev_ids,
}; };
static int __init joydev_init(void) static int __init joydev_init(void)
......
...@@ -378,8 +378,8 @@ static void a3d_disconnect(struct gameport *gameport) ...@@ -378,8 +378,8 @@ static void a3d_disconnect(struct gameport *gameport)
} }
static struct gameport_dev a3d_dev = { static struct gameport_dev a3d_dev = {
connect: a3d_connect, .connect = a3d_connect,
disconnect: a3d_disconnect, .disconnect = a3d_disconnect,
}; };
int __init a3d_init(void) int __init a3d_init(void)
......
...@@ -541,8 +541,8 @@ static void adi_disconnect(struct gameport *gameport) ...@@ -541,8 +541,8 @@ static void adi_disconnect(struct gameport *gameport)
*/ */
static struct gameport_dev adi_dev = { static struct gameport_dev adi_dev = {
connect: adi_connect, .connect = adi_connect,
disconnect: adi_disconnect, .disconnect = adi_disconnect,
}; };
int __init adi_init(void) int __init adi_init(void)
......
...@@ -368,8 +368,7 @@ static void analog_calibrate_timer(struct analog_port *port) ...@@ -368,8 +368,7 @@ static void analog_calibrate_timer(struct analog_port *port)
unsigned int i, t, tx, t1, t2, t3; unsigned int i, t, tx, t1, t2, t3;
unsigned long flags; unsigned long flags;
save_flags(flags); local_irq_save(flags);
cli();
GET_TIME(t1); GET_TIME(t1);
#ifdef FAKE_TIME #ifdef FAKE_TIME
analog_faketime += 830; analog_faketime += 830;
...@@ -377,19 +376,18 @@ static void analog_calibrate_timer(struct analog_port *port) ...@@ -377,19 +376,18 @@ static void analog_calibrate_timer(struct analog_port *port)
udelay(1000); udelay(1000);
GET_TIME(t2); GET_TIME(t2);
GET_TIME(t3); GET_TIME(t3);
restore_flags(flags); local_irq_restore(flags);
port->speed = DELTA(t1, t2) - DELTA(t2, t3); port->speed = DELTA(t1, t2) - DELTA(t2, t3);
tx = ~0; tx = ~0;
for (i = 0; i < 50; i++) { for (i = 0; i < 50; i++) {
save_flags(flags); local_irq_save(flags);
cli();
GET_TIME(t1); GET_TIME(t1);
for (t = 0; t < 50; t++) { gameport_read(gameport); GET_TIME(t2); } for (t = 0; t < 50; t++) { gameport_read(gameport); GET_TIME(t2); }
GET_TIME(t3); GET_TIME(t3);
restore_flags(flags); local_irq_restore(flags);
udelay(i); udelay(i);
t = DELTA(t1, t2) - DELTA(t2, t3); t = DELTA(t1, t2) - DELTA(t2, t3);
if (t < tx) tx = t; if (t < tx) tx = t;
...@@ -737,8 +735,8 @@ static void analog_parse_options(void) ...@@ -737,8 +735,8 @@ static void analog_parse_options(void)
*/ */
static struct gameport_dev analog_dev = { static struct gameport_dev analog_dev = {
connect: analog_connect, .connect = analog_connect,
disconnect: analog_disconnect, .disconnect = analog_disconnect,
}; };
#ifndef MODULE #ifndef MODULE
......
...@@ -235,8 +235,8 @@ static void cobra_disconnect(struct gameport *gameport) ...@@ -235,8 +235,8 @@ static void cobra_disconnect(struct gameport *gameport)
} }
static struct gameport_dev cobra_dev = { static struct gameport_dev cobra_dev = {
connect: cobra_connect, .connect = cobra_connect,
disconnect: cobra_disconnect, .disconnect = cobra_disconnect,
}; };
int __init cobra_init(void) int __init cobra_init(void)
......
...@@ -343,8 +343,8 @@ static void gf2k_disconnect(struct gameport *gameport) ...@@ -343,8 +343,8 @@ static void gf2k_disconnect(struct gameport *gameport)
} }
static struct gameport_dev gf2k_dev = { static struct gameport_dev gf2k_dev = {
connect: gf2k_connect, .connect = gf2k_connect,
disconnect: gf2k_disconnect, .disconnect = gf2k_disconnect,
}; };
int __init gf2k_init(void) int __init gf2k_init(void)
......
...@@ -408,8 +408,8 @@ static void grip_disconnect(struct gameport *gameport) ...@@ -408,8 +408,8 @@ static void grip_disconnect(struct gameport *gameport)
} }
static struct gameport_dev grip_dev = { static struct gameport_dev grip_dev = {
connect: grip_connect, .connect = grip_connect,
disconnect: grip_disconnect, .disconnect = grip_disconnect,
}; };
int __init grip_init(void) int __init grip_init(void)
......
...@@ -265,8 +265,8 @@ static void guillemot_disconnect(struct gameport *gameport) ...@@ -265,8 +265,8 @@ static void guillemot_disconnect(struct gameport *gameport)
} }
static struct gameport_dev guillemot_dev = { static struct gameport_dev guillemot_dev = {
connect: guillemot_connect, .connect = guillemot_connect,
disconnect: guillemot_disconnect, .disconnect = guillemot_disconnect,
}; };
int __init guillemot_init(void) int __init guillemot_init(void)
......
...@@ -159,8 +159,8 @@ static void iforce_serio_disconnect(struct serio *serio) ...@@ -159,8 +159,8 @@ static void iforce_serio_disconnect(struct serio *serio)
} }
struct serio_dev iforce_serio_dev = { struct serio_dev iforce_serio_dev = {
write_wakeup: iforce_serio_write_wakeup, .write_wakeup = iforce_serio_write_wakeup,
interrupt: iforce_serio_irq, .interrupt = iforce_serio_irq,
connect: iforce_serio_connect, .connect = iforce_serio_connect,
disconnect: iforce_serio_disconnect, .disconnect = iforce_serio_disconnect,
}; };
...@@ -206,9 +206,9 @@ static struct usb_device_id iforce_usb_ids [] = { ...@@ -206,9 +206,9 @@ static struct usb_device_id iforce_usb_ids [] = {
MODULE_DEVICE_TABLE (usb, iforce_usb_ids); MODULE_DEVICE_TABLE (usb, iforce_usb_ids);
struct usb_driver iforce_usb_driver = { struct usb_driver iforce_usb_driver = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "iforce", .name = "iforce",
probe: iforce_usb_probe, .probe = iforce_usb_probe,
disconnect: iforce_usb_disconnect, .disconnect = iforce_usb_disconnect,
id_table: iforce_usb_ids, .id_table = iforce_usb_ids,
}; };
...@@ -293,8 +293,8 @@ static void interact_disconnect(struct gameport *gameport) ...@@ -293,8 +293,8 @@ static void interact_disconnect(struct gameport *gameport)
} }
static struct gameport_dev interact_dev = { static struct gameport_dev interact_dev = {
connect: interact_connect, .connect = interact_connect,
disconnect: interact_disconnect, .disconnect = interact_disconnect,
}; };
int __init interact_init(void) int __init interact_init(void)
......
...@@ -133,8 +133,8 @@ static void __devexit joydump_disconnect(struct gameport *gameport) ...@@ -133,8 +133,8 @@ static void __devexit joydump_disconnect(struct gameport *gameport)
} }
static struct gameport_dev joydump_dev = { static struct gameport_dev joydump_dev = {
connect: joydump_connect, .connect = joydump_connect,
disconnect: joydump_disconnect, .disconnect = joydump_disconnect,
}; };
static int __init joydump_init(void) static int __init joydump_init(void)
......
...@@ -192,9 +192,9 @@ static void magellan_connect(struct serio *serio, struct serio_dev *dev) ...@@ -192,9 +192,9 @@ static void magellan_connect(struct serio *serio, struct serio_dev *dev)
*/ */
static struct serio_dev magellan_dev = { static struct serio_dev magellan_dev = {
interrupt: magellan_interrupt, .interrupt = magellan_interrupt,
connect: magellan_connect, .connect = magellan_connect,
disconnect: magellan_disconnect, .disconnect = magellan_disconnect,
}; };
/* /*
......
...@@ -743,8 +743,8 @@ static void sw_disconnect(struct gameport *gameport) ...@@ -743,8 +743,8 @@ static void sw_disconnect(struct gameport *gameport)
} }
static struct gameport_dev sw_dev = { static struct gameport_dev sw_dev = {
connect: sw_connect, .connect = sw_connect,
disconnect: sw_disconnect, .disconnect = sw_disconnect,
}; };
int __init sw_init(void) int __init sw_init(void)
......
...@@ -263,9 +263,9 @@ static void spaceball_connect(struct serio *serio, struct serio_dev *dev) ...@@ -263,9 +263,9 @@ static void spaceball_connect(struct serio *serio, struct serio_dev *dev)
*/ */
static struct serio_dev spaceball_dev = { static struct serio_dev spaceball_dev = {
interrupt: spaceball_interrupt, .interrupt = spaceball_interrupt,
connect: spaceball_connect, .connect = spaceball_connect,
disconnect: spaceball_disconnect, .disconnect = spaceball_disconnect,
}; };
/* /*
......
...@@ -207,9 +207,9 @@ static void spaceorb_connect(struct serio *serio, struct serio_dev *dev) ...@@ -207,9 +207,9 @@ static void spaceorb_connect(struct serio *serio, struct serio_dev *dev)
*/ */
static struct serio_dev spaceorb_dev = { static struct serio_dev spaceorb_dev = {
interrupt: spaceorb_interrupt, .interrupt = spaceorb_interrupt,
connect: spaceorb_connect, .connect = spaceorb_connect,
disconnect: spaceorb_disconnect, .disconnect = spaceorb_disconnect,
}; };
/* /*
......
...@@ -182,9 +182,9 @@ static void stinger_connect(struct serio *serio, struct serio_dev *dev) ...@@ -182,9 +182,9 @@ static void stinger_connect(struct serio *serio, struct serio_dev *dev)
*/ */
static struct serio_dev stinger_dev = { static struct serio_dev stinger_dev = {
interrupt: stinger_interrupt, .interrupt = stinger_interrupt,
connect: stinger_connect, .connect = stinger_connect,
disconnect: stinger_disconnect, .disconnect = stinger_disconnect,
}; };
/* /*
......
...@@ -361,8 +361,8 @@ static void tmdc_disconnect(struct gameport *gameport) ...@@ -361,8 +361,8 @@ static void tmdc_disconnect(struct gameport *gameport)
} }
static struct gameport_dev tmdc_dev = { static struct gameport_dev tmdc_dev = {
connect: tmdc_connect, .connect = tmdc_connect,
disconnect: tmdc_disconnect, .disconnect = tmdc_disconnect,
}; };
int __init tmdc_init(void) int __init tmdc_init(void)
......
...@@ -240,9 +240,9 @@ static void twidjoy_connect(struct serio *serio, struct serio_dev *dev) ...@@ -240,9 +240,9 @@ static void twidjoy_connect(struct serio *serio, struct serio_dev *dev)
*/ */
static struct serio_dev twidjoy_dev = { static struct serio_dev twidjoy_dev = {
interrupt: twidjoy_interrupt, .interrupt = twidjoy_interrupt,
connect: twidjoy_connect, .connect = twidjoy_connect,
disconnect: twidjoy_disconnect, .disconnect = twidjoy_disconnect,
}; };
/* /*
......
...@@ -194,9 +194,9 @@ static void warrior_connect(struct serio *serio, struct serio_dev *dev) ...@@ -194,9 +194,9 @@ static void warrior_connect(struct serio *serio, struct serio_dev *dev)
*/ */
static struct serio_dev warrior_dev = { static struct serio_dev warrior_dev = {
interrupt: warrior_interrupt, .interrupt = warrior_interrupt,
connect: warrior_connect, .connect = warrior_connect,
disconnect: warrior_disconnect, .disconnect = warrior_disconnect,
}; };
/* /*
......
...@@ -197,8 +197,8 @@ static void keybdev_disconnect(struct input_handle *handle) ...@@ -197,8 +197,8 @@ static void keybdev_disconnect(struct input_handle *handle)
static struct input_device_id keybdev_ids[] = { static struct input_device_id keybdev_ids[] = {
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
evbit: { BIT(EV_KEY) }, .evbit = { BIT(EV_KEY) },
}, },
{ }, /* Terminating entry */ { }, /* Terminating entry */
}; };
...@@ -206,11 +206,11 @@ static struct input_device_id keybdev_ids[] = { ...@@ -206,11 +206,11 @@ static struct input_device_id keybdev_ids[] = {
MODULE_DEVICE_TABLE(input, keybdev_ids); MODULE_DEVICE_TABLE(input, keybdev_ids);
static struct input_handler keybdev_handler = { static struct input_handler keybdev_handler = {
event: keybdev_event, .event = keybdev_event,
connect: keybdev_connect, .connect = keybdev_connect,
disconnect: keybdev_disconnect, .disconnect = keybdev_disconnect,
name: "keybdev", .name = "keybdev",
id_table: keybdev_ids, .id_table = keybdev_ids,
}; };
static int __init keybdev_init(void) static int __init keybdev_init(void)
......
...@@ -523,9 +523,9 @@ static void atkbd_connect(struct serio *serio, struct serio_dev *dev) ...@@ -523,9 +523,9 @@ static void atkbd_connect(struct serio *serio, struct serio_dev *dev)
static struct serio_dev atkbd_dev = { static struct serio_dev atkbd_dev = {
interrupt: atkbd_interrupt, .interrupt = atkbd_interrupt,
connect: atkbd_connect, .connect = atkbd_connect,
disconnect: atkbd_disconnect .disconnect = atkbd_disconnect
}; };
#ifndef MODULE #ifndef MODULE
......
...@@ -160,10 +160,10 @@ static void dc_kbd_disconnect(struct maple_device *dev) ...@@ -160,10 +160,10 @@ static void dc_kbd_disconnect(struct maple_device *dev)
static struct maple_driver dc_kbd_driver = { static struct maple_driver dc_kbd_driver = {
function: MAPLE_FUNC_KEYBOARD, .function = MAPLE_FUNC_KEYBOARD,
name: "Dreamcast keyboard", .name = "Dreamcast keyboard",
connect: dc_kbd_connect, .connect = dc_kbd_connect,
disconnect: dc_kbd_disconnect, .disconnect = dc_kbd_disconnect,
}; };
......
...@@ -129,9 +129,9 @@ void nkbd_disconnect(struct serio *serio) ...@@ -129,9 +129,9 @@ void nkbd_disconnect(struct serio *serio)
} }
struct serio_dev nkbd_dev = { struct serio_dev nkbd_dev = {
interrupt: nkbd_interrupt, .interrupt = nkbd_interrupt,
connect: nkbd_connect, .connect = nkbd_connect,
disconnect: nkbd_disconnect .disconnect = nkbd_disconnect
}; };
int __init nkbd_init(void) int __init nkbd_init(void)
......
...@@ -294,9 +294,9 @@ static void sunkbd_disconnect(struct serio *serio) ...@@ -294,9 +294,9 @@ static void sunkbd_disconnect(struct serio *serio)
} }
static struct serio_dev sunkbd_dev = { static struct serio_dev sunkbd_dev = {
interrupt: sunkbd_interrupt, .interrupt = sunkbd_interrupt,
connect: sunkbd_connect, .connect = sunkbd_connect,
disconnect: sunkbd_disconnect .disconnect = sunkbd_disconnect
}; };
/* /*
......
...@@ -137,9 +137,9 @@ void xtkbd_disconnect(struct serio *serio) ...@@ -137,9 +137,9 @@ void xtkbd_disconnect(struct serio *serio)
} }
struct serio_dev xtkbd_dev = { struct serio_dev xtkbd_dev = {
interrupt: xtkbd_interrupt, .interrupt = xtkbd_interrupt,
connect: xtkbd_connect, .connect = xtkbd_connect,
disconnect: xtkbd_disconnect .disconnect = xtkbd_disconnect
}; };
int __init xtkbd_init(void) int __init xtkbd_init(void)
......
...@@ -108,13 +108,13 @@ static void inport_close(struct input_dev *dev) ...@@ -108,13 +108,13 @@ static void inport_close(struct input_dev *dev)
} }
static struct input_dev inport_dev = { static struct input_dev inport_dev = {
evbit: { BIT(EV_KEY) | BIT(EV_REL) }, .evbit = { BIT(EV_KEY) | BIT(EV_REL) },
keybit: { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) }, .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
relbit: { BIT(REL_X) | BIT(REL_Y) }, .relbit = { BIT(REL_X) | BIT(REL_Y) },
open: inport_open, .open = inport_open,
close: inport_close, .close = inport_close,
name: INPORT_NAME, .name = INPORT_NAME,
phys: "isa023c/input0", .phys = "isa023c/input0",
}; };
static void inport_interrupt(int irq, void *dev_id, struct pt_regs *regs) static void inport_interrupt(int irq, void *dev_id, struct pt_regs *regs)
......
...@@ -98,13 +98,13 @@ static void logibm_close(struct input_dev *dev) ...@@ -98,13 +98,13 @@ static void logibm_close(struct input_dev *dev)
} }
static struct input_dev logibm_dev = { static struct input_dev logibm_dev = {
evbit: { BIT(EV_KEY) | BIT(EV_REL) }, .evbit = { BIT(EV_KEY) | BIT(EV_REL) },
keybit: { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) }, .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
relbit: { BIT(REL_X) | BIT(REL_Y) }, .relbit = { BIT(REL_X) | BIT(REL_Y) },
open: logibm_open, .open = logibm_open,
close: logibm_close, .close = logibm_close,
name: "Logitech bus mouse", .name = "Logitech bus mouse",
phys: "isa023c/input0", .phys = "isa023c/input0",
}; };
static void logibm_interrupt(int irq, void *dev_id, struct pt_regs *regs) static void logibm_interrupt(int irq, void *dev_id, struct pt_regs *regs)
......
...@@ -107,10 +107,10 @@ static void dc_mouse_disconnect(struct maple_device *dev) ...@@ -107,10 +107,10 @@ static void dc_mouse_disconnect(struct maple_device *dev)
static struct maple_driver dc_mouse_driver = { static struct maple_driver dc_mouse_driver = {
function: MAPLE_FUNC_MOUSE, .function = MAPLE_FUNC_MOUSE,
name: "Dreamcast mouse", .name = "Dreamcast mouse",
connect: dc_mouse_connect, .connect = dc_mouse_connect,
disconnect: dc_mouse_disconnect, .disconnect = dc_mouse_disconnect,
}; };
......
...@@ -95,14 +95,11 @@ static int pc110pad_open(struct input_dev *dev) ...@@ -95,14 +95,11 @@ static int pc110pad_open(struct input_dev *dev)
if (pc110pad_used++) if (pc110pad_used++)
return 0; return 0;
__save_flags(flags);
__cli();
pc110pad_interrupt(0,0,0); pc110pad_interrupt(0,0,0);
pc110pad_interrupt(0,0,0); pc110pad_interrupt(0,0,0);
pc110pad_interrupt(0,0,0); pc110pad_interrupt(0,0,0);
outb(PC110PAD_ON, pc110pad_io + 2); outb(PC110PAD_ON, pc110pad_io + 2);
pc110pad_count = 0; pc110pad_count = 0;
__restore_flags(flags);
return 0; return 0;
} }
......
...@@ -613,9 +613,9 @@ static void psmouse_connect(struct serio *serio, struct serio_dev *dev) ...@@ -613,9 +613,9 @@ static void psmouse_connect(struct serio *serio, struct serio_dev *dev)
} }
static struct serio_dev psmouse_dev = { static struct serio_dev psmouse_dev = {
interrupt: psmouse_interrupt, .interrupt = psmouse_interrupt,
connect: psmouse_connect, .connect = psmouse_connect,
disconnect: psmouse_disconnect .disconnect = psmouse_disconnect
}; };
int __init psmouse_init(void) int __init psmouse_init(void)
......
...@@ -36,11 +36,11 @@ MODULE_LICENSE("GPL"); ...@@ -36,11 +36,11 @@ MODULE_LICENSE("GPL");
static short rpcmouse_lastx, rpcmouse_lasty; static short rpcmouse_lastx, rpcmouse_lasty;
static struct input_dev rpcmouse_dev = { static struct input_dev rpcmouse_dev = {
evbit: { BIT(EV_KEY) | BIT(EV_REL) }, .evbit = { BIT(EV_KEY) | BIT(EV_REL) },
keybit: { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) }, .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT) },
relbit: { BIT(REL_X) | BIT(REL_Y) }, .relbit = { BIT(REL_X) | BIT(REL_Y) },
name: "Acorn RiscPC Mouse", .name = "Acorn RiscPC Mouse",
phys: "rpcmouse/input0", .phys = "rpcmouse/input0",
}; };
static void rpcmouse_irq(int irq, void *dev_id, struct pt_regs *regs) static void rpcmouse_irq(int irq, void *dev_id, struct pt_regs *regs)
......
...@@ -279,9 +279,9 @@ static void sermouse_connect(struct serio *serio, struct serio_dev *dev) ...@@ -279,9 +279,9 @@ static void sermouse_connect(struct serio *serio, struct serio_dev *dev)
} }
static struct serio_dev sermouse_dev = { static struct serio_dev sermouse_dev = {
interrupt: sermouse_interrupt, .interrupt = sermouse_interrupt,
connect: sermouse_connect, .connect = sermouse_connect,
disconnect: sermouse_disconnect .disconnect = sermouse_disconnect
}; };
int __init sermouse_init(void) int __init sermouse_init(void)
......
...@@ -414,13 +414,13 @@ static unsigned int mousedev_poll(struct file *file, poll_table *wait) ...@@ -414,13 +414,13 @@ static unsigned int mousedev_poll(struct file *file, poll_table *wait)
} }
struct file_operations mousedev_fops = { struct file_operations mousedev_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
read: mousedev_read, .read = mousedev_read,
write: mousedev_write, .write = mousedev_write,
poll: mousedev_poll, .poll = mousedev_poll,
open: mousedev_open, .open = mousedev_open,
release: mousedev_release, .release = mousedev_release,
fasync: mousedev_fasync, .fasync = mousedev_fasync,
}; };
static struct input_handle *mousedev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id) 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) ...@@ -477,17 +477,17 @@ static void mousedev_disconnect(struct input_handle *handle)
static struct input_device_id mousedev_ids[] = { static struct input_device_id mousedev_ids[] = {
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT,
evbit: { BIT(EV_KEY) | BIT(EV_REL) }, .evbit = { BIT(EV_KEY) | BIT(EV_REL) },
keybit: { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) }, .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) },
relbit: { BIT(REL_X) | BIT(REL_Y) }, .relbit = { BIT(REL_X) | BIT(REL_Y) },
}, /* A mouse like device, at least one button, two relative axes */ }, /* 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, .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_ABSBIT,
evbit: { BIT(EV_KEY) | BIT(EV_ABS) }, .evbit = { BIT(EV_KEY) | BIT(EV_ABS) },
keybit: { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) }, .keybit = { [LONG(BTN_TOUCH)] = BIT(BTN_TOUCH) },
absbit: { BIT(ABS_X) | BIT(ABS_Y) }, .absbit = { BIT(ABS_X) | BIT(ABS_Y) },
}, /* A tablet like device, at least touch detection, two absolute axes */ }, /* A tablet like device, at least touch detection, two absolute axes */
{ }, /* Terminating entry */ { }, /* Terminating entry */
...@@ -496,13 +496,13 @@ static struct input_device_id mousedev_ids[] = { ...@@ -496,13 +496,13 @@ static struct input_device_id mousedev_ids[] = {
MODULE_DEVICE_TABLE(input, mousedev_ids); MODULE_DEVICE_TABLE(input, mousedev_ids);
static struct input_handler mousedev_handler = { static struct input_handler mousedev_handler = {
event: mousedev_event, .event = mousedev_event,
connect: mousedev_connect, .connect = mousedev_connect,
disconnect: mousedev_disconnect, .disconnect = mousedev_disconnect,
fops: &mousedev_fops, .fops = &mousedev_fops,
minor: MOUSEDEV_MINOR_BASE, .minor = MOUSEDEV_MINOR_BASE,
name: "mousedev", .name = "mousedev",
id_table: mousedev_ids, .id_table = mousedev_ids,
}; };
#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX #ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
......
...@@ -136,18 +136,18 @@ static void power_disconnect(struct input_handle *handle) ...@@ -136,18 +136,18 @@ static void power_disconnect(struct input_handle *handle)
static struct input_device_id power_ids[] = { static struct input_device_id power_ids[] = {
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT,
evbit: { BIT(EV_KEY) }, .evbit = { BIT(EV_KEY) },
keybit: { [LONG(KEY_SUSPEND)] = BIT(KEY_SUSPEND) } .keybit = { [LONG(KEY_SUSPEND)] = BIT(KEY_SUSPEND) }
}, },
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT,
evbit: { BIT(EV_KEY) }, .evbit = { BIT(EV_KEY) },
keybit: { [LONG(KEY_POWER)] = BIT(KEY_POWER) } .keybit = { [LONG(KEY_POWER)] = BIT(KEY_POWER) }
}, },
{ {
flags: INPUT_DEVICE_ID_MATCH_EVBIT, .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
evbit: { BIT(EV_PWR) }, .evbit = { BIT(EV_PWR) },
}, },
{ }, /* Terminating entry */ { }, /* Terminating entry */
}; };
...@@ -155,11 +155,11 @@ static struct input_device_id power_ids[] = { ...@@ -155,11 +155,11 @@ static struct input_device_id power_ids[] = {
MODULE_DEVICE_TABLE(input, power_ids); MODULE_DEVICE_TABLE(input, power_ids);
static struct input_handler power_handler = { static struct input_handler power_handler = {
event: power_event, .event = power_event,
connect: power_connect, .connect = power_connect,
disconnect: power_disconnect, .disconnect = power_disconnect,
name: "power", .name = "power",
id_table: power_ids, .id_table = power_ids,
}; };
static int __init power_init(void) static int __init power_init(void)
......
...@@ -141,12 +141,12 @@ static int ct82c710_write(struct serio *port, unsigned char c) ...@@ -141,12 +141,12 @@ static int ct82c710_write(struct serio *port, unsigned char c)
static struct serio ct82c710_port = static struct serio ct82c710_port =
{ {
type: SERIO_8042, .type = SERIO_8042,
name: ct82c710_name, .name = ct82c710_name,
phys: ct82c710_phys, .phys = ct82c710_phys,
write: ct82c710_write, .write = ct82c710_write,
open: ct82c710_open, .open = ct82c710_open,
close: ct82c710_close, .close = ct82c710_close,
}; };
/* /*
......
...@@ -296,41 +296,41 @@ static void i8042_close(struct serio *port) ...@@ -296,41 +296,41 @@ static void i8042_close(struct serio *port)
*/ */
static struct i8042_values i8042_kbd_values = { static struct i8042_values i8042_kbd_values = {
irq: I8042_KBD_IRQ, .irq = I8042_KBD_IRQ,
irqen: I8042_CTR_KBDINT, .irqen = I8042_CTR_KBDINT,
disable: I8042_CTR_KBDDIS, .disable = I8042_CTR_KBDDIS,
name: "KBD", .name = "KBD",
exists: 0, .exists = 0,
}; };
static struct serio i8042_kbd_port = static struct serio i8042_kbd_port =
{ {
type: SERIO_8042, .type = SERIO_8042,
write: i8042_kbd_write, .write = i8042_kbd_write,
open: i8042_open, .open = i8042_open,
close: i8042_close, .close = i8042_close,
driver: &i8042_kbd_values, .driver = &i8042_kbd_values,
name: "i8042 Kbd Port", .name = "i8042 Kbd Port",
phys: I8042_KBD_PHYS_DESC, .phys = I8042_KBD_PHYS_DESC,
}; };
static struct i8042_values i8042_aux_values = { static struct i8042_values i8042_aux_values = {
irq: I8042_AUX_IRQ, .irq = I8042_AUX_IRQ,
irqen: I8042_CTR_AUXINT, .irqen = I8042_CTR_AUXINT,
disable: I8042_CTR_AUXDIS, .disable = I8042_CTR_AUXDIS,
name: "AUX", .name = "AUX",
exists: 0, .exists = 0,
}; };
static struct serio i8042_aux_port = static struct serio i8042_aux_port =
{ {
type: SERIO_8042, .type = SERIO_8042,
write: i8042_aux_write, .write = i8042_aux_write,
open: i8042_open, .open = i8042_open,
close: i8042_close, .close = i8042_close,
driver: &i8042_aux_values, .driver = &i8042_aux_values,
name: "i8042 Aux Port", .name = "i8042 Aux Port",
phys: I8042_AUX_PHYS_DESC, .phys = I8042_AUX_PHYS_DESC,
}; };
/* /*
......
...@@ -97,11 +97,11 @@ static void parkbd_close(struct serio *port) ...@@ -97,11 +97,11 @@ static void parkbd_close(struct serio *port)
static struct serio parkbd_port = static struct serio parkbd_port =
{ {
write: parkbd_write, .write = parkbd_write,
open: parkbd_open, .open = parkbd_open,
close: parkbd_close, .close = parkbd_close,
name: parkbd_name, .name = parkbd_name,
phys: parkbd_phys, .phys = parkbd_phys,
}; };
static void parkbd_interrupt(int irq, void *dev_id, struct pt_regs *regs) static void parkbd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
......
...@@ -49,10 +49,10 @@ MODULE_LICENSE("GPL"); ...@@ -49,10 +49,10 @@ MODULE_LICENSE("GPL");
static struct serio q40kbd_port = static struct serio q40kbd_port =
{ {
type: SERIO_8042, .type = SERIO_8042,
write: NULL, .write = NULL,
name: "Q40 PS/2 kbd port", .name = "Q40 PS/2 kbd port",
phys: "isa0060/serio0", .phys = "isa0060/serio0",
}; };
static void q40kbd_interrupt(int irq, void *dev_id, struct pt_regs *regs) static void q40kbd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
......
...@@ -55,10 +55,10 @@ static inline void rpckbd_write(unsigned char val) ...@@ -55,10 +55,10 @@ static inline void rpckbd_write(unsigned char val)
static struct serio rpckbd_port = static struct serio rpckbd_port =
{ {
type: SERIO_8042, .type = SERIO_8042,
write: rpckbd_write, .write = rpckbd_write,
name: "RiscPC PS/2 kbd port", .name = "RiscPC PS/2 kbd port",
phys: "rpckbd/serio0", .phys = "rpckbd/serio0",
}; };
static void rpckbd_rx(int irq, void *dev_id, struct pt_regs *regs) static void rpckbd_rx(int irq, void *dev_id, struct pt_regs *regs)
......
...@@ -216,14 +216,14 @@ static void serport_ldisc_write_wakeup(struct tty_struct * tty) ...@@ -216,14 +216,14 @@ static void serport_ldisc_write_wakeup(struct tty_struct * tty)
*/ */
static struct tty_ldisc serport_ldisc = { static struct tty_ldisc serport_ldisc = {
name: "input", .name = "input",
open: serport_ldisc_open, .open = serport_ldisc_open,
close: serport_ldisc_close, .close = serport_ldisc_close,
read: serport_ldisc_read, .read = serport_ldisc_read,
ioctl: serport_ldisc_ioctl, .ioctl = serport_ldisc_ioctl,
receive_buf: serport_ldisc_receive, .receive_buf = serport_ldisc_receive,
receive_room: serport_ldisc_room, .receive_room = serport_ldisc_room,
write_wakeup: serport_ldisc_write_wakeup .write_wakeup = serport_ldisc_write_wakeup
}; };
/* /*
......
...@@ -154,9 +154,9 @@ static void gunze_connect(struct serio *serio, struct serio_dev *dev) ...@@ -154,9 +154,9 @@ static void gunze_connect(struct serio *serio, struct serio_dev *dev)
*/ */
static struct serio_dev gunze_dev = { static struct serio_dev gunze_dev = {
interrupt: gunze_interrupt, .interrupt = gunze_interrupt,
connect: gunze_connect, .connect = gunze_connect,
disconnect: gunze_disconnect, .disconnect = gunze_disconnect,
}; };
/* /*
......
...@@ -461,9 +461,9 @@ static void h3600ts_disconnect(struct serio *serio) ...@@ -461,9 +461,9 @@ static void h3600ts_disconnect(struct serio *serio)
*/ */
static struct serio_dev h3600ts_dev = { static struct serio_dev h3600ts_dev = {
interrupt: h3600ts_interrupt, .interrupt = h3600ts_interrupt,
connect: h3600ts_connect, .connect = h3600ts_connect,
disconnect: h3600ts_disconnect, .disconnect = h3600ts_disconnect,
}; };
/* /*
......
...@@ -218,13 +218,13 @@ static int tsdev_ioctl(struct inode *inode, struct file *file, ...@@ -218,13 +218,13 @@ static int tsdev_ioctl(struct inode *inode, struct file *file,
} }
struct file_operations tsdev_fops = { struct file_operations tsdev_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: tsdev_open, .open = tsdev_open,
release: tsdev_release, .release = tsdev_release,
read: tsdev_read, .read = tsdev_read,
poll: tsdev_poll, .poll = tsdev_poll,
fasync: tsdev_fasync, .fasync = tsdev_fasync,
ioctl: tsdev_ioctl, .ioctl = tsdev_ioctl,
}; };
static void tsdev_event(struct input_handle *handle, unsigned int type, static void tsdev_event(struct input_handle *handle, unsigned int type,
...@@ -411,13 +411,13 @@ static struct input_device_id tsdev_ids[] = { ...@@ -411,13 +411,13 @@ static struct input_device_id tsdev_ids[] = {
MODULE_DEVICE_TABLE(input, tsdev_ids); MODULE_DEVICE_TABLE(input, tsdev_ids);
static struct input_handler tsdev_handler = { static struct input_handler tsdev_handler = {
event: tsdev_event, .event = tsdev_event,
connect: tsdev_connect, .connect = tsdev_connect,
disconnect: tsdev_disconnect, .disconnect = tsdev_disconnect,
fops: &tsdev_fops, .fops = &tsdev_fops,
minor: TSDEV_MINOR_BASE, .minor = TSDEV_MINOR_BASE,
name: "tsdev", .name = "tsdev",
id_table: tsdev_ids, .id_table = tsdev_ids,
}; };
static int __init tsdev_init(void) static int __init tsdev_init(void)
......
...@@ -351,20 +351,20 @@ static int uinput_ioctl(struct inode *inode, struct file *file, unsigned int cmd ...@@ -351,20 +351,20 @@ static int uinput_ioctl(struct inode *inode, struct file *file, unsigned int cmd
} }
struct file_operations uinput_fops = { struct file_operations uinput_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: uinput_open, .open = uinput_open,
release: uinput_close, .release = uinput_close,
read: uinput_read, .read = uinput_read,
write: uinput_write, .write = uinput_write,
poll: uinput_poll, .poll = uinput_poll,
// fasync: uinput_fasync, // fasync: uinput_fasync,
ioctl: uinput_ioctl, .ioctl = uinput_ioctl,
}; };
static struct miscdevice uinput_misc = { static struct miscdevice uinput_misc = {
fops: &uinput_fops, .fops = &uinput_fops,
minor: UINPUT_MINOR, .minor = UINPUT_MINOR,
name: UINPUT_NAME, .name = UINPUT_NAME,
}; };
static int __init uinput_init(void) static int __init uinput_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment