toshiba_acpi: Move hotkey enabling code to its own function
authorAzael Avalos <coproscefalo@gmail.com>
Fri, 5 Dec 2014 03:22:45 +0000 (20:22 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 3 Dec 2014 18:10:17 +0000 (10:10 -0800)
commit1f28f2908e40f56794f2fa6bd1fa0e7beaba1a5d
treef828343c0db7ffaa5b397a8219fb6ec963a131f6
parent8cb8e63b5698954877071b7a0d259b7c4c9040dc
toshiba_acpi: Move hotkey enabling code to its own function

The hotkey enabling code is being used by *_setup_keyboard and also by
*_resume.

This patch creates a new function called toshiba_acpi_enable_hotkeys to
be used by these two functions to avoid duplicating code.

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