]> 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)
commitabb115a3f3377b7b88ef5758678c360c6b2925ce
tree0b327f8306f5f65e6f60f177f24160da075e9eec
parent755b54c2d7664b903bfb45b7d15cb67261530d08
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