platform/x86: fujitsu-laptop: refactor hotkey input device setup
authorMichał Kępień <kernel@kempniu.pl>
Mon, 20 Mar 2017 09:32:20 +0000 (10:32 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:27 +0000 (10:14 -0700)
commit11182dbca5cd5270efac5af610c9f483cbc233da
tree2f19c30b7f024930f9149578be0a4c09f96abdea
parentf22526723775f4de1b37335a63b80fb2b00ba4ef
platform/x86: fujitsu-laptop: refactor hotkey input device setup

Simplify error handling in acpi_fujitsu_laptop_add() by moving code
responsible for setting up the input device to a separate function.

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