]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5c7357a21c0df325c7d19b12c57d478ae1edb64
treea7679d6f4948919ea3bb530a24e10f5a09080f55
parentd65f989a9ba8e682be6468316fac06df20d9f99f
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