]> git.baikalelectronics.ru Git - kernel.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 16:58:14 +0000 (12:58 -0400)
commit476e16ed6e015922c01b38c58aa782d4db6d44b1
treee2646271a809de88124bd30511d4b98814555476
parent75f8ab6013c1d02aee5317ff1eff61022bb2d048
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