]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: move keycode processing to separate functions
authorMichał Kępień <kernel@kempniu.pl>
Wed, 11 Jan 2017 08:59:31 +0000 (09:59 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 4 Feb 2017 01:47:18 +0000 (02:47 +0100)
commita8715ce6b3bf110d43ac4eaf0d3506ac942a1eb5
treece04823c82543025bb987bcd5f8eed9d08aaa884
parented194b14721bc443d4dffb97a648cba938814f67
platform/x86: fujitsu-laptop: move keycode processing to separate functions

acpi_fujitsu_hotkey_notify() is pretty deeply nested, which hurts
readability.  Move the keycode processing part to two separate functions
to make the code easier to understand and save a few line breaks.
Rename variable keycode_r to keycode as there is no longer any need to
differentiate between the two.  Tweak indentations to make checkpatch
happy.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Acked-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/fujitsu-laptop.c