Skip to content

Commit

Permalink
asus-laptop: pega_accel - Report accelerometer orientation change thr…
Browse files Browse the repository at this point in the history
…ough 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>
  • Loading branch information
Anisse Astier authored and Matthew Garrett committed Oct 24, 2011
1 parent 16cbf93 commit b93f828
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,14 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event)
}
return ;
}

/* Accelerometer "coarse orientation change" event */
if (asus->pega_accel_poll && event == 0xEA) {
kobject_uevent(&asus->pega_accel_poll->input->dev.kobj,
KOBJ_CHANGE);
return ;
}

asus_input_notify(asus, event);
}

Expand Down

0 comments on commit b93f828

Please sign in to comment.