aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/serio.h')
-rw-r--r--include/linux/serio.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/linux/serio.h b/include/linux/serio.h
index 3a697cc6ecae..0f478a8791a2 100644
--- a/include/linux/serio.h
+++ b/include/linux/serio.h
@@ -41,6 +41,7 @@ struct serio {
41 void (*stop)(struct serio *); 41 void (*stop)(struct serio *);
42 42
43 struct serio *parent, *child; 43 struct serio *parent, *child;
44 unsigned int depth; /* level of nesting in serio hierarchy */
44 45
45 struct serio_driver *drv; /* accessed from interrupt, must be protected by serio->lock and serio->sem */ 46 struct serio_driver *drv; /* accessed from interrupt, must be protected by serio->lock and serio->sem */
46 struct mutex drv_mutex; /* protects serio->drv so attributes can pin driver */ 47 struct mutex drv_mutex; /* protects serio->drv so attributes can pin driver */
@@ -84,18 +85,8 @@ static inline void serio_register_port(struct serio *serio)
84 85
85void serio_unregister_port(struct serio *serio); 86void serio_unregister_port(struct serio *serio);
86void serio_unregister_child_port(struct serio *serio); 87void serio_unregister_child_port(struct serio *serio);
87void __serio_unregister_port_delayed(struct serio *serio, struct module *owner);
88static inline void serio_unregister_port_delayed(struct serio *serio)
89{
90 __serio_unregister_port_delayed(serio, THIS_MODULE);
91}
92
93void __serio_register_driver(struct serio_driver *drv, struct module *owner);
94static inline void serio_register_driver(struct serio_driver *drv)
95{
96 __serio_register_driver(drv, THIS_MODULE);
97}
98 88
89int serio_register_driver(struct serio_driver *drv);
99void serio_unregister_driver(struct serio_driver *drv); 90void serio_unregister_driver(struct serio_driver *drv);
100 91
101static inline int serio_write(struct serio *serio, unsigned char data) 92static inline int serio_write(struct serio *serio, unsigned char data)