platform/x86: fujitsu-laptop: switch to a managed hotkey input device
authorMichał Kępień <kernel@kempniu.pl>
Mon, 20 Mar 2017 09:32:21 +0000 (10:32 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:28 +0000 (10:14 -0700)
commitf66735f8f8fb8d18e41288a74e73dc5e354331c9
treea9150773a973c32116a66a2ad79f745135bc2df0
parent11182dbca5cd5270efac5af610c9f483cbc233da
platform/x86: fujitsu-laptop: switch to a managed hotkey input device

Use a managed input device for hotkey events in order to simplify two
error paths and one cleanup function while also reducing the number of
local variables required.  Remove double assignment to make checkpatch
happy.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c