toshiba_acpi: Add touchpad enable/disable support-
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 26 Mar 2014 02:38:32 +0000 (20:38 -0600)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sun, 6 Apr 2014 16:58:14 +0000 (12:58 -0400)
commit9d8658acd6be9139ef91dfe6c001796e7a03ded6
tree6168958b990e05c8100f579c97ef6af23d65f875
parent360f0f39d0c58432574655008ec8dd15e52e1e8d
toshiba_acpi: Add touchpad enable/disable support-

Toshiba laptops have two ways of letting userspace
know the touchpad has changed state, one with a
button on top of the touchpad that simply emmits
scancodes whenever enabled/disabled, and another one
by pressing Fn-F9 (touchpad toggle) hotkey.

This patch adds support to enable/disable the touchpad
by exposing the _touchpad_ file in sysfs that simply
makes a call to a SCI register, imitating what
Toshiba provided software does on Windows.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/toshiba_acpi.c