]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 15:48:55 +0000 (11:48 -0400)
commit4a21666f4ce59cab691fad8e414d9353aa49c188
treee2646271a809de88124bd30511d4b98814555476
parentddd8cb364d26ded72644da008bfc4a59c2cf8d1c
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