diff options
author | Anisse Astier <anisse@astier.eu> | 2011-10-14 05:13:41 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-10-24 10:52:41 -0400 |
commit | b93f82816c9ee4868c5aa1c8e06259233916d988 (patch) | |
tree | 076e1d6eec9170bb32814a6c4f04d724b0fab51a /drivers/platform/x86/asus-laptop.c | |
parent | 16cbf93369a8d148316a75c333bb81bbb64a46c4 (diff) |
asus-laptop: pega_accel - Report accelerometer orientation change through udev
Signed-off-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/asus-laptop.c')
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 012c44d38d48..05c0e594c036 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -1342,6 +1342,14 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event) | |||
1342 | } | 1342 | } |
1343 | return ; | 1343 | return ; |
1344 | } | 1344 | } |
1345 | |||
1346 | /* Accelerometer "coarse orientation change" event */ | ||
1347 | if (asus->pega_accel_poll && event == 0xEA) { | ||
1348 | kobject_uevent(&asus->pega_accel_poll->input->dev.kobj, | ||
1349 | KOBJ_CHANGE); | ||
1350 | return ; | ||
1351 | } | ||
1352 | |||
1345 | asus_input_notify(asus, event); | 1353 | asus_input_notify(asus, event); |
1346 | } | 1354 | } |
1347 | 1355 | ||