thinkpad_acpi: Factor out get/set adaptive kbd mode
authorBastien Nocera <hadess@hadess.net>
Mon, 2 Mar 2015 13:45:22 +0000 (14:45 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Tue, 3 Mar 2015 16:59:35 +0000 (08:59 -0800)
commitf74587fb9308dd6d4346180672d79b8a861f02dd
tree45ed1f2ede3a93fe9adf5a1e7acb55d851ac3b31
parentf23a5bcb70586231b5130a08de965592afdcf9cd
thinkpad_acpi: Factor out get/set adaptive kbd mode

Move the getting/setting of the adaptive keyboard mode to separate
functions, so that we can reuse them later through sysfs attributes.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c