Input: implement managed polled input devices
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Apr 2014 17:49:51 +0000 (10:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:40:04 +0000 (16:40 -0700)
commitbf1de9761c21f56d5b0c6a0acd3b792d801c61e6
tree41f79fa2df689dd2a15f680078fa4f82e7f759c5
parentd1fefd5b73ba9fe301441e84ebea06044d8f5ea4
Input: implement managed polled input devices

Managed resources are becoming more and more popular in drivers. Let's
implement managed polled input devices, to complement managed regular input
devices.

Similarly to managed regular input devices only one new call
devm_input_allocate_polled_device() is added and the rest of APIs is
modified to work with both managed and non-managed devices.

Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Tested-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-polldev.c
include/linux/input-polldev.h