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)
commitbcb898e5873430d8121eb8df07d5fbfb49134167
treea7679d6f4948919ea3bb530a24e10f5a09080f55
parent3974037039e925a9645e70e1dc91735d28faad95
Input: uinput - uinput_validate_absbits() cleanup

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