Lines Matching full:serio
20 #include <linux/serio.h>
51 struct serio *serio; member
72 static irqreturn_t hampshire_interrupt(struct serio *serio, in hampshire_interrupt() argument
75 struct hampshire *phampshire = serio_get_drvdata(serio); in hampshire_interrupt()
82 dev_dbg(&serio->dev, "unknown/unsynchronized data: %x\n", in hampshire_interrupt()
88 static void hampshire_disconnect(struct serio *serio) in hampshire_disconnect() argument
90 struct hampshire *phampshire = serio_get_drvdata(serio); in hampshire_disconnect()
94 serio_close(serio); in hampshire_disconnect()
95 serio_set_drvdata(serio, NULL); in hampshire_disconnect()
102 * new serio device that supports hampshire protocol and registers it as
106 static int hampshire_connect(struct serio *serio, struct serio_driver *drv) in hampshire_connect() argument
119 phampshire->serio = serio; in hampshire_connect()
122 "%s/input0", serio->phys); in hampshire_connect()
130 input_dev->dev.parent = &serio->dev; in hampshire_connect()
138 serio_set_drvdata(serio, phampshire); in hampshire_connect()
140 err = serio_open(serio, drv); in hampshire_connect()
150 fail3: serio_close(serio); in hampshire_connect()
151 fail2: serio_set_drvdata(serio, NULL); in hampshire_connect()
158 * The serio driver structure.
171 MODULE_DEVICE_TABLE(serio, hampshire_serio_ids);