]> git.baikalelectronics.ru Git - kernel.git/commit
Input: automatically set EV_ABS bit in input_set_abs_params
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 8 Oct 2014 16:28:32 +0000 (09:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 8 Oct 2014 18:06:12 +0000 (11:06 -0700)
commit551429b4b0237f6e40e3aa737f47e764a837748b
tree9f906f2a833e5ce6a5799786e054c3c4d2b0f4e4
parent472d94f1f76515a73127a031bfaa8154de24f6ae
Input: automatically set EV_ABS bit in input_set_abs_params

Let's automatically set EV_ABS bit in device's event type list when calling
input_set_abs_params() so that drivers do not have to do it explicitly.

These calls are never in a hot paths so we won't lose much time by setting
the same bit several times.

Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c