diff options
Diffstat (limited to 'include/linux/serio.h')
-rw-r--r-- | include/linux/serio.h | 13 |
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 | ||
85 | void serio_unregister_port(struct serio *serio); | 86 | void serio_unregister_port(struct serio *serio); |
86 | void serio_unregister_child_port(struct serio *serio); | 87 | void serio_unregister_child_port(struct serio *serio); |
87 | void __serio_unregister_port_delayed(struct serio *serio, struct module *owner); | ||
88 | static inline void serio_unregister_port_delayed(struct serio *serio) | ||
89 | { | ||
90 | __serio_unregister_port_delayed(serio, THIS_MODULE); | ||
91 | } | ||
92 | |||
93 | void __serio_register_driver(struct serio_driver *drv, struct module *owner); | ||
94 | static inline void serio_register_driver(struct serio_driver *drv) | ||
95 | { | ||
96 | __serio_register_driver(drv, THIS_MODULE); | ||
97 | } | ||
98 | 88 | ||
89 | int serio_register_driver(struct serio_driver *drv); | ||
99 | void serio_unregister_driver(struct serio_driver *drv); | 90 | void serio_unregister_driver(struct serio_driver *drv); |
100 | 91 | ||
101 | static inline int serio_write(struct serio *serio, unsigned char data) | 92 | static inline int serio_write(struct serio *serio, unsigned char data) |