Lines Matching full:serio
15 #include <linux/serio.h>
35 struct serio *serio; member
57 static irqreturn_t gunze_interrupt(struct serio *serio, in gunze_interrupt() argument
60 struct gunze *gunze = serio_get_drvdata(serio); in gunze_interrupt()
76 static void gunze_disconnect(struct serio *serio) in gunze_disconnect() argument
78 struct gunze *gunze = serio_get_drvdata(serio); in gunze_disconnect()
82 serio_close(serio); in gunze_disconnect()
83 serio_set_drvdata(serio, NULL); in gunze_disconnect()
90 * new serio device that supports Gunze protocol and registers it as
94 static int gunze_connect(struct serio *serio, struct serio_driver *drv) in gunze_connect() argument
107 gunze->serio = serio; in gunze_connect()
109 snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); in gunze_connect()
117 input_dev->dev.parent = &serio->dev; in gunze_connect()
123 serio_set_drvdata(serio, gunze); in gunze_connect()
125 err = serio_open(serio, drv); in gunze_connect()
135 fail3: serio_close(serio); in gunze_connect()
136 fail2: serio_set_drvdata(serio, NULL); in gunze_connect()
143 * The serio driver structure.
156 MODULE_DEVICE_TABLE(serio, gunze_serio_ids);