summaryrefslogtreecommitdiff
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-03 23:16:12 +0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-08 21:10:05 +0400
commit2be975c6d920de989ff5e4bc09ffe87e59d94662 (patch)
tree34b24d6559118a4aedc60bdef265834530cacde9 /drivers/input/tablet
parentfa8e2458ecfc959cd627e25ba86d8eddcb63c887 (diff)
downloadlinux-2be975c6d920de989ff5e4bc09ffe87e59d94662.tar.xz
Input: introduce managed input devices (add devres support)
There is a demand from driver's writers to use managed devices framework for their drivers. Unfortunately up to this moment input devices did not provide support for managed devices and that lead to mixing two styles of resource management which usually introduced more bugs, such as manually unregistering input device but relying in devres to free interrupt handler which (unless device is properly shut off) can cause ISR to reference already freed memory. This change introduces devm_input_allocate_device() that will allocate managed instance of input device so that driver writers who prefer using devm_* framework do not have to mix 2 styles. Reviewed-by: Henrik Rydberg <rydberg@euromail.se> Reviewed-by: Tejun Heo <tj@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tablet')
0 files changed, 0 insertions, 0 deletions