diff options
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 5c16001959cc..ab060710688f 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -296,9 +296,15 @@ static void input_handle_event(struct input_dev *dev, | |||
296 | * @value: value of the event | 296 | * @value: value of the event |
297 | * | 297 | * |
298 | * This function should be used by drivers implementing various input | 298 | * This function should be used by drivers implementing various input |
299 | * devices. See also input_inject_event(). | 299 | * devices to report input events. See also input_inject_event(). |
300 | * | ||
301 | * NOTE: input_event() may be safely used right after input device was | ||
302 | * allocated with input_allocate_device(), even before it is registered | ||
303 | * with input_register_device(), but the event will not reach any of the | ||
304 | * input handlers. Such early invocation of input_event() may be used | ||
305 | * to 'seed' initial state of a switch or initial position of absolute | ||
306 | * axis, etc. | ||
300 | */ | 307 | */ |
301 | |||
302 | void input_event(struct input_dev *dev, | 308 | void input_event(struct input_dev *dev, |
303 | unsigned int type, unsigned int code, int value) | 309 | unsigned int type, unsigned int code, int value) |
304 | { | 310 | { |