toshiba_acpi: Add accelerometer support
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 26 Mar 2014 02:38:34 +0000 (20:38 -0600)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sun, 6 Apr 2014 16:58:14 +0000 (12:58 -0400)
commit5a2813e97ae6e5d8c521ace7dd2f4106a9d19e71
treee2646271a809de88124bd30511d4b98814555476
parentdef6c4e25d31b874b939bd08e7941eaa9711653f
toshiba_acpi: Add accelerometer support

Recent Toshiba laptops now come equiped with a built in
accelerometer (TOS620A) device, but such device does not
expose the axes information, however, HCI calls 0x006d
and 0x00a6 can be used to query such info.

This patch adds support to read the axes values by
exposing them through the _position_ sysfs file.

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