Commit df2d4637 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: document use of input_event() function

Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 010c33cc
...@@ -296,9 +296,15 @@ static void input_handle_event(struct input_dev *dev, ...@@ -296,9 +296,15 @@ static void input_handle_event(struct input_dev *dev,
* @value: value of the event * @value: value of the event
* *
* This function should be used by drivers implementing various input * This function should be used by drivers implementing various input
* devices. See also input_inject_event(). * devices to report input events. See also input_inject_event().
*
* NOTE: input_event() may be safely used right after input device was
* allocated with input_allocate_device(), even before it is registered
* with input_register_device(), but the event will not reach any of the
* input handlers. Such early invocation of input_event() may be used
* to 'seed' initial state of a switch or initial position of absolute
* axis, etc.
*/ */
void input_event(struct input_dev *dev, void input_event(struct input_dev *dev,
unsigned int type, unsigned int code, int value) unsigned int type, unsigned int code, int value)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment