diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-12 01:29:46 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-12 01:29:46 -0400 |
commit | 5b2a08262a8c952fef008154933953f083ca5766 (patch) | |
tree | 47fb54c30509a4c444613a1737a212ddda3bb05d /include | |
parent | 6e782584e0713ea89da151333e7fe754c8f40324 (diff) |
Input: rework handle creation code
- consolidate code for binding handlers to a device
- return error codes from handlers connect() methods back to input
core and log failures
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/input.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 3a8b8c6f0ab5..a51d6cf6824c 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -1049,7 +1049,7 @@ struct input_handler { | |||
1049 | void *private; | 1049 | void *private; |
1050 | 1050 | ||
1051 | void (*event)(struct input_handle *handle, unsigned int type, unsigned int code, int value); | 1051 | void (*event)(struct input_handle *handle, unsigned int type, unsigned int code, int value); |
1052 | struct input_handle* (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id *id); | 1052 | int (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id *id); |
1053 | void (*disconnect)(struct input_handle *handle); | 1053 | void (*disconnect)(struct input_handle *handle); |
1054 | void (*start)(struct input_handle *handle); | 1054 | void (*start)(struct input_handle *handle); |
1055 | 1055 | ||
@@ -1102,6 +1102,9 @@ void input_unregister_device(struct input_dev *); | |||
1102 | int input_register_handler(struct input_handler *); | 1102 | int input_register_handler(struct input_handler *); |
1103 | void input_unregister_handler(struct input_handler *); | 1103 | void input_unregister_handler(struct input_handler *); |
1104 | 1104 | ||
1105 | int input_register_handle(struct input_handle *); | ||
1106 | void input_unregister_handle(struct input_handle *); | ||
1107 | |||
1105 | int input_grab_device(struct input_handle *); | 1108 | int input_grab_device(struct input_handle *); |
1106 | void input_release_device(struct input_handle *); | 1109 | void input_release_device(struct input_handle *); |
1107 | 1110 | ||