]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba_acpi: Unify hotkey enabling functions
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 9 Sep 2015 17:28:19 +0000 (11:28 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 3 Oct 2015 15:40:44 +0000 (08:40 -0700)
commitda5f762342442b129c6ae597bdc2308fd58d37a6
tree0b327f8306f5f65e6f60f177f24160da075e9eec
parent10081a8d386e8d27bd6237c502ee0d88f0b2db40
toshiba_acpi: Unify hotkey enabling functions

Currently the driver has two functions enabling hotkeys support,
but these two functions can be merged into one.

This patch merges these two functions, moving some checks to the
*enable_hotkeys function, simplifying code in the process.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c