Lines Matching full:serio
19 #include <linux/serio.h>
55 struct serio *serio; member
86 static irqreturn_t mtouch_interrupt(struct serio *serio, in mtouch_interrupt() argument
89 struct mtouch *mtouch = serio_get_drvdata(serio); in mtouch_interrupt()
107 static void mtouch_disconnect(struct serio *serio) in mtouch_disconnect() argument
109 struct mtouch *mtouch = serio_get_drvdata(serio); in mtouch_disconnect()
113 serio_close(serio); in mtouch_disconnect()
114 serio_set_drvdata(serio, NULL); in mtouch_disconnect()
121 * new serio device that supports MicroTouch (Format Tablet) protocol and registers it as
125 static int mtouch_connect(struct serio *serio, struct serio_driver *drv) in mtouch_connect() argument
138 mtouch->serio = serio; in mtouch_connect()
140 snprintf(mtouch->phys, sizeof(mtouch->phys), "%s/input0", serio->phys); in mtouch_connect()
148 input_dev->dev.parent = &serio->dev; in mtouch_connect()
154 serio_set_drvdata(serio, mtouch); in mtouch_connect()
156 err = serio_open(serio, drv); in mtouch_connect()
166 fail3: serio_close(serio); in mtouch_connect()
167 fail2: serio_set_drvdata(serio, NULL); in mtouch_connect()
174 * The serio driver structure.
187 MODULE_DEVICE_TABLE(serio, mtouch_serio_ids);