Lines Matching full:serio
18 #include <linux/serio.h>
47 struct serio *serio; member
53 static irqreturn_t tr_interrupt(struct serio *serio, in tr_interrupt() argument
56 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt()
81 static void tr_disconnect(struct serio *serio) in tr_disconnect() argument
83 struct tr *tr = serio_get_drvdata(serio); in tr_disconnect()
87 serio_close(serio); in tr_disconnect()
88 serio_set_drvdata(serio, NULL); in tr_disconnect()
95 * new serio device that supports the Touchright protocol and registers it as
99 static int tr_connect(struct serio *serio, struct serio_driver *drv) in tr_connect() argument
112 tr->serio = serio; in tr_connect()
114 snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); in tr_connect()
122 input_dev->dev.parent = &serio->dev; in tr_connect()
128 serio_set_drvdata(serio, tr); in tr_connect()
130 err = serio_open(serio, drv); in tr_connect()
140 fail3: serio_close(serio); in tr_connect()
141 fail2: serio_set_drvdata(serio, NULL); in tr_connect()
148 * The serio driver structure.
161 MODULE_DEVICE_TABLE(serio, tr_serio_ids);