Input: uinput - uinput_validate_absbits() cleanup
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 21 Jul 2014 00:16:23 +0000 (17:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Jul 2014 21:28:21 +0000 (14:28 -0700)
This moves basic checks and setup from uinput_setup_device() into
uinput_validate_absbits() to make it easier to use. This way, we can call
it from other places without copying the boilerplate code.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/uinput.c

Simple merge