Input: uinput - allow for 0/0 min/max on absolute axes.
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 31 Mar 2011 05:25:34 +0000 (22:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 31 Mar 2011 07:02:39 +0000 (00:02 -0700)
commita718d79cc0e0c2f0aa82ba2c54383a18f15b7738
tree5a221f370c0492215fed6ede9e1c8cbba7ca9b98
parent170531bae648c0ef8d56b44dc5bd8d67717b0db9
Input: uinput - allow for 0/0 min/max on absolute axes.

Some devices provide absolute axes with min/max of 0/0 (e.g. wacom's
ABS_MISC axis). Current uinput restrictions do not allow duplication of
these devices and require hacks in userspace to work around this.

If the kernel accepts physical devices with a min/max of 0/0, uinput
shouldn't disallow the same range.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/uinput.c